/*
Theme Name:   Divi CHT Child
Template:     Divi
*/

/*  Divi Media Breakpoints  */
/*  For Desktop screen sizes of 981 pixels and above           */
/*  For Tablet screen sizes between 980 pixels and 768 pixels  */
/*  For Mobile screen sizes 767 pixels and below               */


/*    HTML elements     */

:root {
    --cht-colour-teal:#158185; 
    --cht-colour-blue:#2f85ba; 
    --cht-colour-terracotta:#e47c66; 
/*  Usage: var(--cht-colour-dark-blue) */
}

.et_pb_title_meta_container { display: none; }

/*h1 {
  text-align: left!important;
  font-style: normal!important;
  font-variant: normal!important;
  font-weight: 800!important;
  font-family: Raleway!important;
  letter-spacing: 0px!important;
  color: var(--dci-colour-white)!important;
  opacity: 1!important;
  word-wrap: normal;
}

h2 {
  text-align: center!important;
  font-style: normal!important;
  font-variant: normal!important;
  font-weight: 800!important;
  font-size: 48px!important;
  line-height: 56px!important;
  font-family: Raleway!important;
  letter-spacing: 0px!important;
  color: var(--dci-colour-white)!important;
  opacity: 1!important;
  word-wrap: normal;  
}

h4 {
  font-style: normal!important;
  font-variant: normal!important;
  font-weight: bold!important;
  font-size: 21px!important;
  line-height: 25px!important;
  font-family: Montserrat!important;
  letter-spacing: 0px!important;
  color: var(--dci-colour-white);
  opacity: 1!important;
  word-wrap: normal;  
}

h5 {
  font-style: normal!important;
  font-variant: normal!important;
  font-weight: 400!important;
  font-size: 16px!important;
  line-height: 19px!important;
  font-family: Montserrat!important;
  letter-spacing: 0px!important;
  color: var(--dci-colour-green);
  text-transform: uppercase!important;
  opacity: 1!important;
  word-wrap: normal;
}

*/


#main-footer {
  background-color:#ffffff!important;
  margin-top: 0px;
}

.main-footer-inner {
  width: 100%;
  max-width:1080px;
  margin:auto;
  overflow:hidden;
}

.main-footer-supporters {
  width:100%;
  text-align: center;
}

.main-footer-flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  background-color:var(--cht-colour-terracotta);  
  padding: 30px;
}

.main-footer-flex-column-newsletter {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 80;
} 
.main-footer-flex-column-newsletter h3, .main-footer-flex-column-follow-us h3 {
  color: #ffffff;
}

.main-footer-flex-column-follow-us {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 20;
} 

.main-footer-follow-us {
width:20%;
float:left;
}

.main-footer-privacy-links {
  width:100%;
  max-width:1080px;
  margin:auto;
  background-color:#ffffff;
  overflow:hidden;
  padding-top:10px;
  padding-bottom:10px;
  font-size: 12px;
}

.main-footer-privacy-links a {
    color: #666666;
}

.cht-footer-text {
  margin-right:20%;
  color: #ffffff;
  font-size: 14px;
}

.cht-footer-text a {
  color: #ffffff!important;
  text-decoration: underline!important;
}

.cht-footer-social a img {
  padding-right:5px;
}

.cht-email-box {
  margin-top:10px;
}

.cht-email-text {
  padding:5px!important; 
  border:2px solid #015ea2!important; 
  -webkit-border-radius: 5px!important;
    border-radius: 5px!important;
    width:60%;
    margin-right:0.5%!important;
}

.cht-email-submit {
    padding:5px 15px!important; 
    background:#e6eaf3!important; 
    border:2px solid #015ea2!important;
    cursor:pointer!important;
    -webkit-border-radius: 5px!important;
    border-radius: 5px!important; 
    color: #000000!important;
}

#mce-success-response {
  color: #ffffff!important;
  padding-top: 10px;
}

.cht-fullwidth-header .header-content p {
  width: 600px;
  margin-top: 350px;
}

.cht-header {
  color: #e47c66!important;
  font-size: 40px!important;
  text-align: center!important;
  font-weight: bold!important;
}

/* Remove the percentage-based max-height approach */
@media only screen and (min-width: 981px) {
    #logo {
        max-width: 250px; /* Adjust to your preferred desktop size */
        max-height: none; /* Remove the 79% */
    }
}

/* Base logo styles */
#logo {
    width: auto;
    max-width: 180px; /* Default for tablet/smaller desktop */
    height: auto;
    transition: all 0.4s ease-in-out;
    margin-bottom: 0;
    display: inline-block;
    float: none;
    vertical-align: middle;
    -webkit-transform: translate3d(0, 0, 0);
}

/* Mobile */
@media only screen and (max-width: 767px) {
    #logo {
        max-width: 180px; /* Smaller on mobile to prevent overlay */
    }
}

/* Ensure the img itself respects the container */
#logo img {
    max-width: 100%;
    height: auto;
    width: auto;
}
