:root {
  --blue: #1e2425  ; /*nav link colour*/
  --yellow:  #1E506D; /*contact button */

  --offwhite:  rgb(243, 243, 243); 
  --largemaxwidth: 1720px;
  --maxwidth: 1300px;
  --newgrey: #a6a6a6;
  --darkgrey:   #2f393d;
  --teal: #6e97ac;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --outline-width: 3px;
  --outline-color: rgba(0, 125, 250, 1);
  --outline-offset: -3px; /*use where it could stick out of page structure*/
}
.blog h1{
  font-size: 3.2rem; 
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.1px;
}
.blog h2{
  color: var(--newgrey);
  font-size: 1.1rem; 
  font-weight: 500;
  margin-bottom: 10px;
}
.blog h3{
  font-size: 2.5rem;
  font-weight: 400;
}
.latest-blogpost{
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 5%;
  margin-bottom: 80px;
}
.latest-left{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.latest-left picture{
  width: 100%;
  height: 100%;
  display: block;
}
.latest-left img{
  border-radius: 0.2rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.latest-right{
  width: 100%;
  padding: 30px; /*was 10*/
}
.latest-tags{
  color: var(--newgrey);
  font-size: 0.8rem; 
  font-weight: 400;
  margin-bottom: 20px;
}
.latest-right a{
  padding: 10px;
  background-color: var(--teal);
  color: white;
  border-radius: 0.2rem;
}
.list-filter{
  width: 100%;
  list-style-type: none;
  display: flex;
  margin-bottom: 60px;
  font-size: 1rem;
  border-bottom: 2px solid var(--offwhite);
}
.list-filter label{
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 20px;
  padding-left: 5px;
  cursor: pointer;
}
.grid-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px; 
  width: 100%;
  margin-bottom: 60px;

}
.grid-ele{
  width: 100%;
  display: none;
}
.grid-ele picture{
  width: 100%;
  height: 300px;
  position: relative;
  margin-bottom: 20px;
  display: block;
}
.grid-ele img{
  border-radius: 0.2rem;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}
.grid-ele h3{
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.tags{
  color: var(--newgrey);
  font-size: 0.8rem; 
  margin-bottom: 10px;
}
.grid-ele a{
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px;
  background-color: var(--teal);
  color: white;
}
.filtp{
  display: none;
}
#filt1:checked ~ main .list-filter li:nth-child(1){
  border-bottom: 2px solid var(--teal);
  margin-bottom: -2px;
}
#filt1:checked ~ main .grid-ele{
  display: block;
}
#filt2:checked ~ main .list-filter li:nth-child(2){
  border-bottom: 2px solid var(--teal);
  margin-bottom: -2px;
}
#filt2:checked ~ main .guidance{
  display: block;
}
#filt3:checked ~ main .list-filter li:nth-child(3){
  border-bottom: 2px solid var(--teal);
  margin-bottom: -2px;
}
#filt3:checked ~ main .news{
  display: block;
}
@media screen and (max-width: 1150px) {
  .blog h1{
    font-size: max(calc( 3.2rem + calc(3.687vw + -44.40px)), 1.8rem);
  }
  .blog h2{
    font-size: 1rem;
  }
  .blog p{
    font-size: 0.8rem;
  }
  .blog ul{
    font-size: 1rem;
  }
}
@media screen and (max-width: 1000px) {
  .latest-right h3{
    font-size: 1.6rem;
  }
  .latest-right a{
    font-size: 1rem;
  }
}
@media screen and (max-width: 700px) {
  .grid-list{
    gap: 20px;
  }
  .latest-blogpost{
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .latest-left{
    height: 300px;
  }
  .latest-right{
    padding: 0;
  }
  .list-filter label{
    padding-right: 10px;
    font-size: 0.8rem;
  }
  .grid-ele picture{
    height: 200px;
  }
  .grid-ele img{
    height: 200px;
  }
}
@media screen and (max-width: 520px) {
  .latest-blogpost{
    padding: 0;
    gap: 15px;
  }
  .latest-right h3{
    font-size: 1.2rem;
  }
  .blogpost-list h2{
    margin-right: 50px;
    border-bottom: 2px solid var(--offwhite);
  }
  .blogpost-list .filtp{
    display: inline-block;
  }
  .drop-top{
    display: inline-block;
    font-size: 1rem;
  }
  .list-filter{
    display: none;
    position: absolute;
    z-index: 10;
    background-color: white;
    width: fit-content;
    top: 100%;
    left: 0;
  }
  .list-filter li{
    display: block;
    padding-bottom: 5px;
    padding-top: 5px;
  }
  .list-filter label{
    font-size: 1rem;
  }
  #filt1:checked ~ main #f1{
    display: inline-block;
  }
  #filt2:checked ~ main #f2{
    display: inline-block;
  }
  #filt3:checked ~ main #f3{
    display: inline-block;
  }
  .drop-top:hover .list-filter{
    display: inline-block;
  }
  #filt1:checked ~ main .list-filter li:nth-child(1){
    border-bottom: 0px;
    margin-bottom: 0px;
  }
  #filt2:checked ~ main .list-filter li:nth-child(2){
    border-bottom: 0px;
    margin-bottom: 0px;
  }
  #filt3:checked ~ main .list-filter li:nth-child(3){
    border-bottom: 0px;
    margin-bottom: 0px;
  }
  .list-filter li:hover{
    background-color: var(--offwhite);
  }
}
@media screen and (max-width: 450px) {
  .grid-list{
    grid-template-columns: 1fr;
  }
}
.drop-top{
  margin-bottom: 30px;
  position: relative;
}
.drop-top div{
  display: none;
  background-color: var(--offwhite);
  border-radius: 10px;
  padding: 3px;
}
