@charset "utf-8";
/* CSS Document */

:root {
  --main-theme: #527470;
  --seconday-theme: #CAD8D3;
  --tertiary-theme: #E4ECEB;
  --dark-sage: #3D5E58;
  --overview-bg-color: #55517B;
  --bg-light-gray:#F4F2F3;
}
.landing-page > section{
  padding-bottom:40px;
}
.banner-container{
  display:flex;
  justify-content: space-between;
  gap:50px; 
}
.banner-container .col-left{
  flex: 1
}
.banner-container .col-left p{
max-width: 600px;
}
.banner-container .col-right{
    margin:20px 0;
    display: none;
}
.top-banner img{
  box-shadow: rgb(99 99 99 / 34%) 0px 2px 6px 0px;
  border-radius: 5px;
  max-width: 330px;
}

/* primary buttons */
.pdf-btn, .budget-btn{
  border-radius: 5px;
  padding: 15px;
  line-height: 1.5em;
  font-size: 20px; 
  border: none;
  transition: all 0.3s ease;
}
.btn.budget-btn {  
    background-color: var(--main-theme);
    color: #fff!important;
   
    border: 2px solid var(--main-theme);
    box-shadow: rgb(99 99 99 / 34%) 0px 2px 6px 0px; 
}
.btn.budget-btn:hover,.btn.pdf-btn:hover {
    background-color: var(--dark-sage);
    border: 2px solid var(--dark-sage);
    color:#fff;
    text-decoration: none;
}

.btn.pdf-btn { 
    background-color: #ffffff;
    color: var(--main-theme);
    padding: 15px;
    line-height: 1.5em;
    font-size: 20px; 
    border: 2px solid var(--main-theme);  
}
 
.budget-img {
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  max-width:100%;
  height:300px; 
  background-image: url("https://loremflickr.com/500/500/house/?random=1");
}
/*Top Banner Tablet */
@media (min-width: 992px) {
  .banner-container .col-right{
   display: block;
  }
}
 
/* accordion section   */
.chevron-rotate {
  transition: transform 0.3s ease;
  transform: rotate(90deg);
} 

.fa-caret-right {
 font-size: 30px;
color: var(--overview-bg-color);
transition: transform 0.3s ease;
margin-right: 15px;
}
 
button {
  display: flex;
  align-items: center;
}

.accordion-container {
    position: relative; 
  
    margin:15px 0;
    overflow: hidden;
    max-height:80px;
    border-radius: 5px;
    box-shadow: rgb(99 99 99 / 34%) 0px 1px 3px 0px;
    transition: all 0.3s ease;
} 
.accordion {
  display: flex;
  overflow: hidden;
    height:80px;
    background-color: rgba(244, 242, 243, 0.0); 
    position:absolute;
    z-index:999;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    font-size: 28px; 
    padding-left:10px; 
    transition: all 0.3s ease; 
}
.accordion:hover i,
.accordion:focus i {
    text-decoration: none;  
}
.accordion:hover h3,
.accordion:focus h3 {
    text-decoration: underline;  
}
.accordion:hover,  .accordion:focus{ 
    cursor: pointer;  
    transition: all 0.3s ease;
}
.accordion-container:hover{
  
  
}
.accordion h3{
  margin:0;
  line-height: 1.2em;
  font-weight: 600;
  font-size: 0.8em;

}

.accordion-panel {  
  background-color: rgba(244, 242, 243); 
}
.accordion-panel .header{
    display:flex;
     
}

.intro-text{
    max-width:60%;
    margin-top: 55px;
    margin-left: 20px;
    padding:20px;    
}

.intro-text p{
  max-width:500px;
  
}
.intro-text, .accordion-img { 
    flex:1; 
}
.accordion-panel .white-well h4{
  margin-top:0;
}
.accordion-panel .col-md-4:last-child .well{
  margin-bottom: 0px;
}
.image-container{
  background-color:#55517B;
  position: relative;
  top:-80px;
  transition: all 0.3s ease;
  overflow: hidden;
  transform: translate3d(0,0,0);
}
.image-container::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all 0.3s ease;

}

.image-container::before {
  background-color: black;
  mix-blend-mode: lighten;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all 0.3s ease;

}
.image-container::after {
  background: linear-gradient(90deg, rgba(244, 242, 243, 1) 2%, rgba(244, 242, 243, 0) 57%);
  content: '';
  position: absolute;
  width: 60%;
  height: 100%;
  top: 0;
  left: -3px;
  transition: all 0.3s ease;
}
.open .image-container{
  top:0;
  transition: all 0.3s ease;
}
.accordion-img{
  background-size: 100%;
  background-repeat: no-repeat;
  width:500px;
  height:250px;
  display: block;
  mix-blend-mode: luminosity;
  -webkit-filter: grayscale(100%) contrast(1.2);
  filter: grayscale(100%) contrast(1);
  transition: all 0.3s ease;


}
.open .accordion-img{
  background-position: center 0;
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  mix-blend-mode: normal;
 
}
.accordion-container:hover .image-container .accordion-img, .accordion:focus ~ .accordion-panel .image-container .accordion-img {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  mix-blend-mode: normal;
  transition: all 0.3s ease;
}
.accordion-container .white-well {
opacity: 0;
transition: opacity 1s ease!important;
box-shadow: rgb(99 99 99 / 18%) 0px 2px 6px 0px;
}
.open.accordion-container  .white-well{
  opacity: 1;
  transition: opacity 1s ease!important;
}

.cat-1{
  background-image: url("../img/landingpage/ep-home-700x500.jpg");
}
.cat-2{
  background-image: url("../img/landingpage/ep-family-700x500.jpg");
}
.cat-3{
  background-image: url("../img/landingpage/ep-career-700x500.jpg");
}
.cat-4{
  background-image: url("../img/landingpage/ep-afford-700x500.jpg");
}
.cat-5{
  background-image: url("../img/landingpage/ep-retire-700x500.jpg");
} 
.accordion-panel .row{
    padding:0px 20px 20px 20px;
} 

@media (max-width: 768px) {
  .accordion-panel .white-well h4 {

    font-size: 1em;
  }
}
@media (min-width: 768px) {
  
  .accordion h3{
    font-weight: 100;
    font-size: 1em;
  }
}
@media (max-width: 992px) {
  
  .accordion-img {
    display: none;
  }
  .intro-text {
    max-width: 100%;  
  }
}
 
@media (min-width: 992px) {
  .accordion-panel .row{
    padding:20px 20px 20px 20px;
  } 
  .accordion-panel .well{
    margin-bottom: 0;
  }
  .mid{
    padding:0;
  }

}
/* highlights section */
.white-well {
    background-color: #ffffff!important; 
    border: none;
    box-shadow: none;
    border-radius: 5px;
    
}

.background-sage {
    background-color: var(--dark-sage);
}
 
.background-tertiary {
    background-color: var(--tertiary-theme);
}

.background-secondary{
  background-color: var(--seconday-theme);
}

   /* Theme Section - Mobile/default */
   .theme_container {
    display: flex;
    flex-direction: column-reverse;
    border-radius: 5px;
    overflow: hidden;
}
.text_wrap {
  padding: 20px;
  margin: 40px 0 0 0;
  background-color: white;
  box-shadow: rgb(99 99 99 / 34%) 0px 2px 6px 0px;
  border-radius: 5px 5px 0 0;
}

  

.theme_container .text_wrap h3{
  font-size:1.4em;
}
 
.circle_content {            
  background-color: #435E5A;
  text-align: center;
  color: white;
  padding: 20px;
  margin-bottom: 40px;
  box-sizing: border-box; 
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center */      
  box-shadow: rgb(99 99 99 / 34%) 0px 2px 6px 0px;
  border-radius: 0 0 5px 5px;
}
.circle_content h4{
  margin: 0;
}
.theme_container.right_img{
  flex-direction: column;
}
.circle_content p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.circle_content div{
max-width:400px;
}
/* Theme Section - Tablet */
@media (min-width: 768px) {
  
  .text_wrap {
      /* Width of text content */
      padding: 20px;
      margin: 0px;
      border-radius: 0;
      box-shadow: none;
  }
  .theme_container{
      flex-direction: initial;
      margin: 40px 0;
  } 

  /* margin for final theme section */
  :last-of-type .highlights  {
    margin-bottom: 20px;
  }
  

  .theme_container.right_img{
      flex-direction: initial;
  }
  .circle_content {
      line-height: 240px;
      vertical-align: middle;
      width: 240px;
      height: 240px;
      background-color: #435E5A;
      border-radius: 50%;
      position: relative;
      border: 8px solid white;
      margin-bottom: 0;
  }
  .theme_container {
      box-shadow: rgb(99 99 99 / 34%) 0px 2px 6px 0px;
      display: flex;
      justify-content: space-between;
      /* Each child item sticks to either left or right edge */
  }


  .img_wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100%;
      max-width: 40%;
      /* Width of img */
      background-size: cover;
      background-position: center;
  }
  .img_wrap,
  .text_wrap {
      flex: 1;
      /* Each child takes up equal width */
  }   
  .text_wrap{
      max-width: 60%;
  }

  .img_wrap {
      max-width: 40%;
  }
  .theme_1 {
    background-image: url("../img/landingpage/highlight-housing-700x500.jpg");
    /* Theme 1 img */

  }
  .theme_2 {
      background-image: url("../img/landingpage/highlight-young-700x500.jpg");
      /* Theme 2 img */

  }
  .theme_3 {
      background-image: url("../img/landingpage/highlight-ai-700x500.jpg");
      /* Theme 3 img */

  }
  .text_wrap{
      max-width: 60%;
  }      
  .img_wrap {
      max-width: 40%;
  }
}

/* Theme Section - tablet/small desktop */
@media (min-width: 992px) {
.text_wrap,.img_wrap {
    max-width: 50%;
  }
}

/* Theme Section - large desktop */
@media (min-width: 1200px) {
.text_wrap {
    max-width: 48%;
    margin: 50px 0 50px 0;
    border-radius: 5px;
    box-shadow: rgb(99 99 99 / 34%) 0px 2px 6px 0px;
  }

  .theme_container {
    min-height: 550px;
    margin: 0 0 0 0;
    border-radius: 0; 
    box-shadow: none;
  }
  
  .img_wrap {
      max-width: 40%;
  }
  .circle_content {
      left: 50%;
  }

  .right_img .img_wrap .circle_content {
      left: -50%;
      /* Move circle in opposite direction if image is on the right */
  }
}
 

/* Key stats section */
.key-stats img{
  width:140px;
  margin: 0 auto 20px;
  display: block;
    margin: 0 auto 20px;
    position: relative;
    z-index: -1;
}
.key-stats p{
  text-align: center;
  max-width:260px;
  margin:0 auto 20px;
} 
.animate__animated{-webkit-animation-duration:0.8s;animation-duration:0.8s;-webkit-animation-duration:0.8s;animation-duration:0.8s;-webkit-animation-fill-mode:both;animation-fill-mode:both}
.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}
@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}
@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}
 
 
@media (max-width: 992px) {
  .key-stats .col-md-4{
    display: flex;
    margin-top:30px;
    margin-bottom:30px;
    gap:20px;
  }
  .key-stats p{
    text-align: left;
    max-width: 100%;
    margin:0;
    align-self: center;
  }
  .key-stats img{
    margin:0;
    width:120px;
    height:120px;
  }
  .animate__fadeInDown{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}

}
@media (max-width: 576px) {
  .key-stats .col-md-4{
    display: block;
    margin-top:30px;
    margin-bottom:30px;

  }
  .key-stats img{
    display: block;
    margin: 0 auto 20px;
    
  }
  .key-stats p{
    text-align: center;
    max-width:260px;
    margin:0 auto 20px;
  } 
}
 
/*  Economic and fiscal overview section */ 
.background-light-gray{
  background-color: var(--bg-light-gray);
}
.overview{
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: rgb(99 99 99 / 34%) 0px 2px 6px 0px;
  background-color: white;
}

.doormat, .chart{
  padding:0 20px 20px;
  /* flex: 1; */
  
}
.doormat{
  width:100%;
  color: white;
  background-color: var(--overview-bg-color);
}
.doormat a, .doormat a:visited{
  color:white;

}
@media (max-width: 992px) {
  .overview {
    flex-direction: column;   
  }
}

/* pdf downloads */ 

.grid-container {
  display: grid; 
  margin: 20px 0 0 0; 
  border: 1px solid #ccc; 
  border-radius: 5px;
  padding:0;
}
.grid-container li{
  list-style-type: none;
  margin:0;
  padding:0;
}

.grid-item {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Icon | Text | File Size */
  column-gap: 10px;
  padding: 10px; 
}


li:not(:last-child) .grid-item {
  border-bottom: 1px solid #ccc;
}
li:first-child .grid-item{
border-radius: 5px 5px 0px 0px;
}
li:last-child .grid-item {
  border-radius: 0px 0px 5px 5px;
}

.grid-item img{
  align-self: flex-start;
  width: 44px;
}

.file-size {
  justify-self: end;  
  margin-left: 20px; 
  text-decoration: none; 
  grid-column: 1 / 3; /* span across both columns */
  grid-row: 2; /* align text to the first row */ 
}

@media (max-width: 768px) { 
  .file-size{
    grid-column: 1 / 3; /* span across both columns */
    grid-row: 2; /* align text to the first row */ 
  }

}
/*French fixes*/
.landing-page.fr .key-stats p{
  max-width: 100%;
}

@media (min-width: 768px){
  .landing-page.fr .accordion h3 {
    
  }
  .landing-page.fr .circle_content p {
    font-size: 0.85em;
  }
  .landing-page.fr .overview {
    flex-direction: column;
  }
}
@media (min-width: 992px){
  .landing-page.fr .accordion-img {
    display: none;
  }
  .landing-page.fr .intro-text{
    max-width:100%;
  }
  .landing-page.fr .intro-text p{
    max-width: 100%;
  }
  .landing-page.fr .accordion-panel .row {
    padding: 0px 20px 20px 20px;
  }
}
@media (min-width: 1200px){
  .landing-page.fr .accordion-panel .row {
    padding: 20px 20px 20px 20px;
  }
  .landing-page.fr .accordion-img {
    display: block;
  }
  .landing-page.fr .overview {
    flex-direction: row;
  }
}
@media (max-width: 350px){
  .landing-page.fr .accordion h3 {
    font-size: 18px;
  }

}