
/* ******************************************* News ******************************************* */
.section-news
{  
  width: 100%;
  margin-bottom: 100px;
}
.section-news h2
{
  text-align: center;
  color: var(--color-h);
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.news-container
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  column-gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.news-sub-container
{
  padding: 0 20px;
}
.news-sub-container img
{
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
}
.news-sub-container h3
{ 
  color: var(--color-h);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.news-sub-container p
{  
  padding: 20px 0;
  margin-bottom: 20px;
}
.news-sub-container p a
{
  color: var(--color-link);
  font-weight: 700;
}


/* ******************************************* Activities ******************************************* */
.section-activities
{  
  width: 100%;
  padding: 50px 0;
  margin-bottom: 100px;
  background-color: #eee;
}
.section-activities h2
{
  text-align: center;
  color: var(--color-h);
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.activities-container
{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  justify-content: center;
  align-content: center;
  column-gap: 20px;
  row-gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.activities-sub-container
{ 
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  background-color: #fff;
  border: 1px solid #ccc;
  padding-bottom: 10px;
}
.activities-sub-container img
{
  width: 180px;
  height: auto;
  justify-self: center;
  align-self: center;
  padding: 20px 10px;
}
.activities-sub-container h3
{  
  color: var(--color-h);
  text-align: center;
  font-size: 1.2rem;
  padding: 0 20px;
}
.activities-sub-container p
{  
  text-align: center;
  padding: 20px;
}


/* ******************************************* Projects ******************************************* */
.section-projects
{  
  width: 100%;
  margin-bottom: 150px;
}
.section-projects h2
{
  color: var(--color-h);
  text-align: center;
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.projects-container
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  max-width: 100%;
  background-color: #eee;
}
.projects-container > a
{
  display: grid;
  justify-items: center;
  align-items: center;
}
.projects-container img
{
  max-width:60%;
  min-width: 300px;
  height: auto;
  margin-top: 20px;
}
.projects-container:nth-of-type(odd) > a
{
  grid-area: 1 / 1 / 2 / 2;
}
.projects-container:nth-of-type(even) > a
{
  grid-area: 1 / 2 / 2 / 3;
}
.projects-container:nth-of-type(odd) .projects-desc-container
{
  grid-area: 1 / 2 / 2 / 3;
}
.projects-container:nth-of-type(even) .projects-desc-container
{
  grid-area: 1 / 1 / 2 / 2;
}
.projects-desc-container
{
  padding: 70px;
  background-color: var(--color-main);
}
.projects-desc-container h3
{  
  color: #fff;
  font-size: 2.0rem;
  line-height: 2.6rem;
  letter-spacing: 0.05rem;
  padding: 0 0 10px 0;
}
.projects-desc-container h4
{
  color: #fff;
  font-size: 2.2rem;
  line-height: 2.6rem;
  font-weight: 300;
  transform: scale(1, 1.2);
  padding: 30px 0 20px 0;
}
.projects-desc-container p
{
  color: #fff;
  font-weight: 400;
  line-height: 1.8rem;
  margin-bottom: 50px;
}
.projects-desc-container p em, .projects-desc-container p q
{
  color: #fff;
}


/* ******************************************* Working ******************************************* */
.section-working
{  
  width: 100%;
  padding: 70px 0;
  margin-bottom: 100px;
  background-position: center;
  background-size: cover;
  background-image: url("../images/home/home-working-background.webp");
}
.section-working h2
{
  color: var(--color-h);
  color: #fff;
  text-align: center;
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.working-container
{
  display: grid;
  justify-items: center;  
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.working-container p
{ 
  color: #fff;
  text-align: center;
  font-weight: 400;
  padding: 10px 20px;
}
.working-container p:first-of-type
{ 
  padding-top: 0;
}
.working-container p:last-of-type
{ 
  margin-bottom: 30px;
}
.working-container p strong
{
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}
.working-container p em
{
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
}


/* ******************************************* Why ******************************************* */
.section-why
{  
  width: 100%;
  padding: 50px 20px;
  margin-bottom: 100px;
  background-color: #eee;
}
.section-why h2
{
  text-align: center;
  color:var(--color-h);
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.why-container
{  
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 40px;
  row-gap: 20px;
  max-width: 1200px; 
  margin: 0 auto;
}
.why-sub-container
{
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
}
.why-sub-container h3
{  
  color: var(--color-h);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.why-sub-container p
{  
  margin-bottom: 0px;
}


/* ******************************************* Services ******************************************* */
.section-services
{  
  width: 100%;
  margin-bottom: 100px;
}
.section-services h2
{
  text-align: center;
  color: var(--color-h);
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.services-container
{  
  max-width: 100%; 
  background-position: center;
  background-size: cover;
  padding: 50px 0;
}
.services-container:nth-of-type(1)
{  
  margin-bottom: 50px;
  background-image: url("../images/home/home-services-geo-background.webp");  
}
.services-container:nth-of-type(2)
{  
  margin-bottom: 50px;
  background-image: url("../images/home/home-services-lottery-background.webp");  
}
.services-container:nth-of-type(3)
{  
  background-image: url("../images/home/home-services-gratings-background.webp");  
}
.services-sub-container
{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;  
  grid-template-rows: 1fr; 
  justify-items: center; 
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.services-sub-container img
{
  width: 250px;
  height: auto;
}
.services-container:nth-of-type(odd) .services-desc-container
{
  grid-area: 1 / 1 / 2 / 3;
}
.services-container:nth-of-type(even) .services-desc-container
{  
  grid-area: 1 / 2 / 2 / 4;
}
.services-desc-container
{
  padding: 40px;
}
.services-desc-container h3
{
  color: #fff;
  font-size: 2.0rem;
  line-height: 2.4rem;
  letter-spacing: 0.05rem;
  margin-bottom: 50px;
}
.services-desc-container p
{
  color: #fff;
  font-weight: 400;
  line-height: 1.8rem;
  margin-bottom: 50px;
}


/* ******************************************* Skills ******************************************* */
.section-skills
{  
  width: 100%;
  margin-bottom: 100px;
}
.section-skills h2
{
  text-align: center;
  color: var(--color-h);
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.skills-container
{
  display: grid;
  grid-template-columns: repeat(4, 1fr);  
  grid-template-rows: 1fr; 
  justify-items: center; 
  max-width: 1200px; 
  margin: 0 auto;
}
.skills-sub-container
{ 
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  border-right: 1px solid #ccc;
}
.skills-sub-container:last-of-type
{
  border-right: none;
}
.skills-sub-container img
{
  justify-self: center;
  height: 120px;
  margin: 20px 20px 10px 20px;
}
.skills-sub-container h3
{
  color: var(--color-h);
  font-size: 1.2rem;
  text-align: center;
  padding: 10px 20px;
}
.skills-sub-container p
{
  text-align: center;
  padding: 10px 20px;
}


/* ******************************************* Research ******************************************* */
.section-research
{  
  width: 100%;
  margin-bottom: 100px;
}
.section-research h2
{
  color: var(--color-h);
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 50px;
}
.research-container
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.research-container img
{
  max-width: 750px;
  height: auto;
  padding: 20px;
}
.research-desc-container
{
  align-self: start;
  padding: 20px;
  margin-top: 20px;
}
.research-desc-container p
{  
  padding: 20px 0;
  margin-bottom: 20px;
}


/* ******************************************* Who ******************************************* */
.section-who
{  
  width: 100%;
  padding: 50px 0;
  margin-bottom: 100px;
  background-color: #eee;
}
.section-who h2
{
  text-align: center;
  color: var(--color-h);
  font-size: 2.4rem;
  line-height: 2.8rem;
  padding: 0 20px;
  margin-bottom: 30px;
}
.who-container
{
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.who-container p
{
  text-align: center;
  padding: 20px 30px;
  margin-bottom: 20px;
}


/* ********************************************** Imagine ********************************************** */
.section-imagine
{
  width: 100%; 
  background-color: var(--color-main);
  padding: 110px 20px 90px 20px;
  margin-bottom: 150px;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}
.imagine-container
{
  max-width: 1000px;
  margin: 50px auto;
}
.imagine-container h2
{
  color: #fff;
  font-size: 2.4rem;
  line-height: 2.8rem;
  margin-bottom: 70px;
}
.imagine-container p
{
  color: #fff;
  font-size: 1.0rem;
  line-height: 1.6rem;
  font-weight: 400;
  margin-bottom: 40px;
}
.imagine-container p:last-of-type
{
  margin-bottom: 50px;
}
.imagine-container p em
{
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
}


/* ************************************************************************************************************ */
/* ********************************************** RESPONSIVENESS ********************************************** */
/* ************************************************************************************************************ */
@media only screen and (max-width: 768px) 
{
  /* News */
  .news-container
  {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .news-sub-container
  {
    margin-top: 20px;
  }

  /* Activities */  
  .activities-container
  {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    column-gap: 40px;
    margin: 0 20px;
  }

  /* Projects */
  .projects-container
  {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    background-color: transparent;
  }
  .projects-container img
  {
    width: 100%;
  }
  .projects-container:nth-of-type(odd) > a
  {
    grid-area: 1 / 1 / 2 / 2;
  }
  .projects-container:nth-of-type(even) > a
  {
    grid-area: 1 / 1 / 2 / 2;
  }
  .projects-container:nth-of-type(odd) .projects-desc-container
  {
    grid-area: 2 / 1 / 3 / 2;
  }
  .projects-container:nth-of-type(even) .projects-desc-container
  {
    grid-area: 2 / 1 / 3 / 2;
  }

  /* Services */
  .services-sub-container
  {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }  
  .services-container:nth-of-type(odd) .services-desc-container
  {
    grid-area: 2 / 1 / 3 / 2;
  }
  .services-container:nth-of-type(even) .services-desc-container
  {  
    grid-area: 2 / 1 / 3 / 2;
  }

  /* Skills */
  .skills-container
  {
    grid-template-columns: 1fr 1fr;  
    grid-template-rows: 1fr 1fr;
    row-gap: 50px;
  }
  .skills-sub-container:nth-of-type(2n)
  {
    border-right: none;
  }

  /* Research */
  .section-research h2
  {
    text-align: center;
    margin-bottom: 20px;
  }
  .research-container
  {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .research-container img
  {
    grid-area: 2 / 1 / 3 / 2;
    max-width: 100%;
  }
  .research-desc-container
  {
    display: grid;
    justify-items: center;
    margin: 0;
  }
}
@media only screen and (max-width: 480px) 
{
  /* Projects */
  .projects-desc-container
  {
    padding: 70px 30px;
  }

  /* Why */
  .why-container
  {  
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  /* Skills */
  .skills-container
  {
    grid-template-columns: 1fr;  
  }
  .skills-sub-container
  {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
  .skills-sub-container p
  {
    padding-bottom: 30px;
  }

  /* Imagine */
  .section-imagine
  {
    padding-top: 100px;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  }
}

