/*
Theme Name: Divi Child
Theme URI: https://www.elegantthemes.com/gallery/divi/
Description: Divi Child Theme
Author: Your Name
Author URI: https://yourwebsite.com
Template: Divi
Version: 1.0.0
*/
/* Add your custom CSS below */
.filter.active{
    font-weight: bold !important;
}
.resources-grid-sidebar{
    width: 19%;
    display: inline-block;
    vertical-align: top;
}
.resources-grid-sidebar  ul{
    list-style-type: none !important;
}
.resources-grid-content{
    width: 75%;
    display: inline-block;
    margin-left: 5%;
}
.resources-grid-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 20px 0px 40px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resources-grid-sidebar li {
  margin: 0;
}

.resources-grid-sidebar .filter {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;
  background-color: #f5f5f5;
  color: #444;
  text-decoration: none;
  border-radius: 20px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.resources-grid-sidebar .filter:hover {
  background-color: #e9f5ef;
  border-color: #2baa57;
  color: #2baa57;
}

.resources-grid-sidebar .filter.active {
  background-color: #2baa57;
  color: #fff;
  border-color: #2baa57;
}

.clear-filters {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #4f759b;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.clear-filters:hover {
  background-color: #2baa57;
}
.load-more-wrap button{
    color:  #2baa57;
    border: none;
    cursor: pointer;
}
.load-prev-posts {
    float: right;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Commissioner', sans-serif !important;
  font-weight: 700 !important;
}

/* Apply Commissioner normal to body text */
body, p, span, div, li, a, td, th {
  font-family: 'Commissioner', sans-serif !important;
  font-weight: 400 !important;
} 

.et_pb_scroll_top:before {
    content: "\21"; /* Or the correct Unicode for the icon */
    font-family: 'ETModules' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Limits to Biotech page css: */

.limits-to-biotech-page {
	max-width: 1080px;
	margin: auto;
}

@media screen and (min-width: 600px){ 
.flip-card {
  background-color: transparent;
  width: 360px;
  height: 360px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  color: black;
}
.flip-card-back {
  transform: rotateY(180deg);
	font-size: 10pt;
	line-height: 150%;
}

}
.flip-card-back {
  background-color: #fff;
	padding: 30px;
}
.custom-resources-grid1 {
  column-count: 3;
  column-gap: 30px;
}
.custom-resources-grid {
  column-count: 2;
  column-gap: 30px;
}
.resource-card {
  display: inline-block;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  margin-bottom: 30px;
  padding: 20px;
  box-sizing: border-box;
}

.resource-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
}

.resource-content h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: #5ea43b;
}

.resource-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 10px;
}

.resource-content p {
  margin: 0 0 10px;
  line-height: 1.4;
}

.read-more {
  color: #5ea43b;
  font-weight: bold;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .custom-resources-grid,   .custom-resources-grid1 {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .custom-resources-grid,   .custom-resources-grid1 {
    column-count: 1;
  }
  .resources-grid-sidebar{
      display: none;
  }
}
.calendar-box {
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border: 3px solid #2baa57;
}

.calendar-header {
  background: linear-gradient(90deg, #2baa57, #4f759b);
  color: #fff;
  text-align: center;
  padding: 16px 24px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.calendar-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  height: 0;
}

.calendar-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#et-secondary-menu {
    display: none;
}
.search-results #content-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.search-results #sidebar{
    width: 100%;
}


