/* style.css */
.learn-posts-wrapper {
    display: flex;
}

.language-filter-column {
    width: 25%;
    padding-right: 20px; /* Add some spacing between columns */
    box-sizing: border-box; /* Include padding in width calculation */
}

.posts-column {
    width: 75%;
}

.learn-posts-list .posts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between items */
}

.learn-post-item {
    width: calc(33.33% - 20px); /* Three columns with gap */
    padding: 10px 0px;
    box-sizing: border-box; /* Include padding in width */
}

.learn-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}
.language-filter ul {
    list-style: none;
    padding: 0;
}

.language-filter li {
    margin-top: 12px;
    line-height: 25px;
}

.language-filter a.active {
    font-weight: bold;
}
@media (max-width: 992px) { /* Example breakpoint for tablets */
    .learn-posts-wrapper {
        flex-direction: column; /* Stack columns vertically */
    }

    .language-filter-column {
        width: 100%; /* Full width */
        margin-bottom: 20px; /* Add space below filter */
        padding-right: 0;
    }

    .posts-column {
        width: 100%;
    }
    .learn-post-item {
        width: calc(50% - 20px); /* Two columns on smaller screens */
    }
}
@media (max-width: 576px) { /* Example breakpoint for mobile */
    .learn-post-item {
        width: 100%; /* One column on mobile */
    }
}



.audience-filter ul, 
.grade_level-filter ul, 
.curriculum-filter ul, 
.key_words-filter ul {
    list-style: none;
    padding: 0;
}

.audience-filter li {
    margin-bottom: 5px;
}
.language-filter h3, .audience-filter h3{
    margin-bottom: 10px;
}


.learn-post-item {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 170px;
    display: flex; /* Use flexbox for vertical centering */
    flex-direction: column;
    justify-content: flex-end; /* Align content to the bottom */
    padding-bottom: 20px;
    color: white; /* Or a color that works well with your backgrounds */
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); Add text shadow for better readability */
}

.learn-post-item a {
    color: white; /* Or a color that works well with your backgrounds */
    text-decoration: none;
}



/* learn-posts.css */
/* ... other styles ... */
.learn-post-item {
    /* ... other styles ... */
    position: relative; /* Needed for absolute positioning of the button */
    overflow: hidden; /* Needed to prevent content from overflowing on smaller screens */
}
.post-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 20px;
    color: white;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
    height: 100%;
    width: 100%;
     padding: 10px 0px;
    box-sizing: border-box;
    text-align: center;
    font-family: Open Sans;
font-size: 16px;
font-weight: 700;
}

.post-content a {
    color: white;
    text-decoration: none !important;
}

.pdf-button {
    display: inline-block;
    padding: 5px 10px;
    /* background-color: rgba(0,0,0,.7); */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px; /* Add some spacing above the button */
    transition: background-color 0.3s ease; /* Add a smooth transition */
    text-decoration: none !important;
    /* width: 100px; */
    margin: 20px auto;
    border: 1px solid #ffffff;
}

/* .pdf-button:hover {
    background-color: rgba(0,0,0,.9);
} */

span.learn-post-title {
    padding: 10px;
    background: rgb(255 255 255 / 80%);
    color: #000000;
}


.filter-section {
    margin-bottom: 10px;
}

.filter-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chevron {
    transition: transform 0.3s ease;
    transform: rotate(270deg);
    opacity: 60%;
}

.filter-section ul {
    display: none; /* Start as hidden */
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-section.open ul {
    display: block; /* Show when open */
}

.filter-section.open .chevron {
    transform: rotate(0deg); /* Rotate chevron when open */
    opacity: 100%;
}


.youtube-thumbnail {
    display: block;
    width: 100%; /* Make the thumbnail responsive */
    max-width: 560px; /* Optional: set a max width */
    margin: 0 auto; /* Center the thumbnail */
    border-radius: 5px;
}

.youtube-thumbnail-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Optional: add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: add a subtle shadow */
}

.youtube-thumbnail:hover .youtube-thumbnail-image {
    opacity: 0.8; /* Add a hover effect for better interaction */
}



.post-content.with-video {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5px;
}



.post-content.with-video img.youtube-play-button {
    height: 50px;
}



.language-filter-column .filter-section {
    border: 1px solid #000000;
    border-top: 0px;
    margin: 0;
    padding: 15px 10px;
    
}

.language-filter-column h3.filter-title {
    color: #000000;
    margin: 0px;
    font-family: Open Sans;
    font-size: 16px;
    font-weight: 400;
}

.language-filter-column .language-filter {
    border: 1px solid #000000;
        margin: 0;
    padding: 15px 10px;

}

.language-filter-column .language-filter h3{
    color: #000000;
    font-family: Open Sans;
    font-size: 16px;
    font-weight: 600;
}

.language-filter-column .filter-section li {
    font-family: Open Sans;
    font-size: 16px;
    font-weight: 400;
    margin-top: 12px;
    line-height: 25px;
}


.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination button:hover {
    background-color: #ddd;
}

.pagination button:active {
    background-color: #ccc;
}



.filter-section input:checked,
.filter-section select:focus {
    background-color: #ddd; /* Highlight selected filter */
}



.learn-posts-list .pagination button.active {
    color: white;  
    background-color: #DC5D29; 
}

.learn-posts-list .pagination button {
    border: 1px solid #DC5D29;
    background-color: #ffffff; 
    color: #000000;  
    font-weight: bold; 
    padding: 15px;
}



/* Hide the browser's default checkbox */
.filter-section input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .filter-section label {
    margin-left: 25px;
	color: #000000;
  }
  
  /* Create a custom checkbox */
  .checkmark {
    position: absolute;
    left: 5px;
    height: 24px;
    width: 24px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
  }
  
  
  /* When the checkbox is checked, add a blue background */
  .filter-section input:checked ~ .checkmark {
    background-color: #DC5D29;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .filter-section input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .filter-section .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }



  .language-filter input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .language-filter label {
    margin-left: 25px;
	color: #000000;
  }
  
  /* Create a custom checkbox */
  .radio {
    position: absolute;
    left: 5px;
    height: 24px;
    width: 24px;
    background-color: #ffffff;
    border: 1px solid #000000;
   border-radius: 50%;
  }
  
  
  /* When the checkbox is checked, add a blue background */
  .language-filter input:checked ~ .radio {
    background-color: #ffffff;
        border: 1px solid #DC5D29;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .radio:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .language-filter input:checked ~ .radio:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .language-filter .radio:after {
 	top: 6px;
	left: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #DC5D29;
  }


  
  .sortby-filter input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .sortby-filter label {
    margin-left: 25px;
  }
  
  
  /* When the checkbox is checked, add a blue background */
  .sortby-filter input:checked ~ .radio {
    background-color: #ffffff;
        border: 1px solid #DC5D29;
  }
  
  /* Show the checkmark when checked */
  .sortby-filter input:checked ~ .radio:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .sortby-filter .radio:after {
 	top: 6px;
	left: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #DC5D29;
  }
  .video-contrast-overlay {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.post-content.with-video {
    padding: 0px;

}

span.pdf-button.button-placeholder {
    border-color: transparent !important;
}


/* Temporarily hide resources keywords */
.learn-posts-wrapper.learn-type-Resources .filter-section.key_words_select-filter {
    display: none;
}