/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

p{
	font-size:18px !important;
  text-align: justify !important;
}

.single-alert-container{
    display:flex !important;
    max-width: 100% !important;
    padding:80px 120px !important;
    align-items: center;
    justify-content: center;
}

.single-alert-wrapper{
    display:flex;
    max-width: 1390px !important;
    width:100%;
    flex-direction: row;
}

.alert-details{
    display: flex;
    flex:2;
    flex-direction: column;
    padding: 0 50px;
}

.alert-content{
    font-size: 20px !important;
    margin: 0em 0 0.8em;
    color:#000;
}

.alert-sidebar .alert-content{
    font-size: 18px !important;
    margin: 0em 0 0.8em;
    color:#1a1919;
}

.alert-sidebar{
    flex: 1;
    padding-left: 50px;
    position: relative;
}

.alert-sidebar::before{
position:absolute;
content:'';
top:0;
bottom:0;
height:100%;
width:0.5px;
background: #bbbbbb;
left:0;
}


.single-alert-container .progress-bar-inner {
    display: flex;
    width: 100%; 
    height: 10px; 
    border-radius: 5px; 
    overflow: hidden; 
}

.single-alert-container .progress-section {
    height: 100%;
    flex-grow: 1; 
    transition: background-color 0.3s ease; 
}

.single-alert-container .progress-section:not(.active) {
    opacity: 0.1; 
	background-color: #ccc; }

.single-alert-container .severity-low.active { 
    background-image: linear-gradient(to right, #4CAF50, #4CAF50); 
}
.single-alert-container .severity-moderate.active { 
    background-image: linear-gradient(to right, #4CAF50, #FFEB3B); 
}
.single-alert-container .severity-elevated.active { 
    background-image: linear-gradient(to right, #4CAF50, #FFEB3B, #FF9800); 
}
.single-alert-container .severity-high.active { 
    background-image: linear-gradient(to right, #4CAF50, #FFEB3B, #FF9800, #F44336); 
}

.single-alert-container .active-level {
    text-align: center;
    margin-top: 5px; 
    font-weight: bold; 
}


.single-initiative {
    
    max-width: 1390px;
    margin: 0 auto;
    padding: 40px;
  }

  .entry-container{
display: flex;
flex-direction: row;
  }
  
  .entry-title {
   
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .entry-content {
    
    display: flex;
    flex:3;
  }

  .entry-content .image-container{
    max-width: 1000px;
    height: auto;
    margin-bottom:30px;
  }

  .entry-content .image-container img {
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    object-position: center center; 
  }


  
  .entry-description {
    
    flex: 1 1 60%;
    margin-right: 20px;
  }

  .entry-sidebar{
    display: flex
;
    flex-direction: column;
    flex: 1;
    padding: 70px 30px;
    text-align: left;
  }
  
  .download-section {
    
    flex: 1 1 40%;
    text-align: center;
  }
  
  .download-button {
   
    display: inline-block;
    padding: 10px 20px;
    background-color: #7dbf25;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    width: 100%;
    font-size: 18px;
  }
  
  .related-posts {
    
    margin-top: 40px;
    padding: 0 120px;
  }
  
  .related-posts-container {
    display: flex;
    flex-wrap: wrap;
  }
  
  .related-post {
   
    flex: 1;
    margin-bottom: 20px;
    margin-right: 20px;
    max-width: 350px;
    min-height: 150px;

  }
  
  .related-post a {
    display: block;
    text-decoration: none;
    color: #333;
  }
  
  .related-post img {
    width: 100%;
    margin-bottom: 10px;
    height: auto;
    object-fit: cover;
  }

.show-more-btn, .close-btn {
    background-color: black;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
}

.show-more-btn:hover, .close-btn:hover {
    background-color: #333;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.single-alert-container{
    display: flex !important
;
    max-width: 100% !important;
    padding: 80px 20px !important;
    align-items: center;
    justify-content: center;
    
}

.single-alert-container .single-alert-wrapper{
    display: flex;
    flex-direction: column;
}

.alert-sidebar{
    flex: 1;
    padding-top: 50px;
    position: relative;
}

.alert-sidebar::before{
    position:absolute;
content:'';
top:0;
right:0;
height:0.5px;
width:100%;
background: #bbbbbb;
left:0;
}



}

/* Mobile devices */
@media only screen and (max-width: 767px) {
  .entry-container {
    display: flex
;
    flex-direction: column !important;
}

}

/* Tablet devices */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .entry-container {
    display: flex
;
    flex-direction: column !important;
}
}

/* Desktop and larger screens */
@media only screen and (min-width: 1024px) {

}

