:root {
    /* Color Variables */
    --color-primary: #153937;
    --color-white: #FFF;
    --color-black: #000;
    --color-brand: #DE6039;
    --color-brand-bright: #D4ECE4;
    
    /* Opacity Colors */
    --bg-secondary: rgba(21, 57, 55, 0.05);
    --bg-secondary-hover: rgba(21, 57, 55, 0.05);
    --stroke-muted: rgba(21, 57, 55, 0.15);
    --stroke-primary: rgba(21, 57, 55, 1);
    --text-secondary: rgba(21, 57, 55, 0.80);
    --text-muted: rgba(21, 57, 55, 0.60);
    
    /* Typography */
    --font-onest: Onest, sans-serif;
    --font-inter: Inter, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 40px;
    --spacing-section: 80px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-full: 1000px;
  }
  
  /* Base Styles */
  .ajax-blog-filters-wrapper,
  .ajax-publication-filters-wrapper,
  .ajax-event-filters-wrapper {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 870px;
    margin-inline: auto;
    border: 1px solid var(--stroke-muted);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    justify-content: center;
    text-align: center;
    margin-bottom: var(--spacing-section);
  }
  
  .ajax-blog-filters-wrapper > p,
  .ajax-publication-filters-wrapper > p,
  .ajax-event-filters-wrapper > p {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.3px;
  }
  
  /* Filter Buttons */
  .ajax-blog-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
  }
  
  .ajax-filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--stroke-muted);
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.18px;
    color: var(--color-black);
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .ajax-filter-btn.active{
    background: rgba(74, 90, 84, 1);
    border-color: var(--stroke-primary);
    color: var(--color-white);
  }
/* .ajax-filter-btn:focus{
	 background: var(--bg-secondary);
	color: var(--color-black);
	    border: 1px solid var(--stroke-muted);
}  */
  /* Post Grid */
  .ajax-post-grid,
  .ajax-publication-grid,
  .ajax-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
  
  .ajax-post-item, 
  .ajax-publication-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke-muted);
    background: var(--color-white);
    display: flex;
    padding: var(--spacing-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xxl);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  
  /* Post Content */
  .ajax-post-date,
  .ajax-publication-date  {
    color: #44615F;
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.06px;
    margin-bottom: var(--spacing-xs);
  }
  
  .ajax-post-title h3, 
  .ajax-publication-title h3{
    color: var(--color-black);
    font-family: var(--font-onest);
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.3px;
    margin-bottom: var(--spacing-sm);
	margin-top:0;
    display: inline-block;
  }
  
  .ajax-post-excerpt,
  .ajax-publication-excerpt {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.06px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
  }
  
  /* Categories */
  .ajax-post-categories, 
  .ajax-publication-media-types {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  
  .ajax-post-category,
  .ajax-publication-media {
    border-radius: var(--radius-full);
    border: 1px solid var(--stroke-muted);
    background: var(--bg-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-black);
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.06px;
  }
  
  /* Read More */
  .ajax-post-readmore,
  .ajax-publication-readmore {
    margin-top: auto;
  }
  
  .read-more-btn {
    color: var(--color-black);
    font-family: var(--font-onest);
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.18px;
    border-bottom: 2px solid var(--color-brand);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color 0.2s ease;
  }
  
  .read-more-btn:hover {
    border-color: #F7D4C9;
  }
  
  /* Pagination */
  .ajax-pagination-nav {
    margin-top: var(--spacing-section);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  .page-numbers {
    display: flex;
    min-width: 40px;
    padding: var(--spacing-xs);
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke-muted);
    color: var(--text-secondary);
    font-family: var(--font-onest);
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.18px;
    transition: all 0.2s ease;
  }
  
  .page-numbers.current {
    background: var(--color-brand-bright);
  }
  
  a.page-numbers:hover {
    background: var(--bg-secondary-hover);
  }
  
  .next.page-numbers,
  .back.page-numbers,
  .prev.page-numbers,
  .page-numbers.dots {
    border: none;
    display: flex;
    align-items: center;
    margin-inline: 12px;
  }
  
  .disabled.page-numbers {
    opacity: 0.3;
    pointer-events: none;
  }
  .prev.page-numbers:hover,  .next.page-numbers:hover{
    background: transparent;
    opacity: 0.8;
  }
  /* Responsive Design */
  @media (max-width: 1024px) {
    .ajax-post-grid, .ajax-event-grid,.ajax-publication-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
  }
  @media (max-width: 768px) {
    .ajax-blog-filters-wrapper {
      padding: var(--spacing-lg) var(--spacing-md);
      gap: var(--spacing-lg);
      margin-bottom: var(--spacing-xl);
    }
    
    .ajax-blog-filters {
      gap: var(--spacing-sm);
    }
    
    .ajax-filter-btn {
      font-size: 16px;
      padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .ajax-post-grid,.ajax-event-grid,.ajax-publication-grid {
      grid-template-columns: 1fr;
      gap: var(--spacing-lg);
    }
    
    .ajax-pagination-nav {
      margin-top: var(--spacing-xl);
    }
  }

  .loading-posts {
    font-size: 1.2rem;
    color: #282828;
    padding: 2rem 0;
    text-align: center;
    opacity: 0.7;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
    display: block;
  }

  /* Select Filter Drop Downs */
 .ajax-publication-filters{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
 }
 .full-width {
  width: 100%;
  text-align: left;
}
.label{
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.18px;
  color: rgba(0, 0, 0, 1);
  margin-bottom:8px;
  display: inline-block;
}
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.custom-select-trigger {
    border: 1px solid rgba(21, 57, 55, 0.8);
    padding: 12px 16px;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    font-size: 16px;
	width: 100%;
	font-family: var(--font-inter);
	 appearance: none; /* modern browsers */
  -webkit-appearance: none; /* Safari */
  -moz-appearance: none; /* Firefox */
	 background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11.7001 12.7086L16.3001 8.10858L17.8914 9.69983L11.7001 15.8911L5.50886 9.69983L7.10011 8.10858L11.7001 12.7086Z' fill='%23153937'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}
.selected-text{
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  letter-spacing: 0.5px;
  color: rgba(21, 57, 55, 0.8) ;
  white-space: nowrap;
}
.custom-select-trigger:hover {
  border-color: rgba(21, 57, 55, 0.8);
  background-color: rgba(241, 249, 246, 1);
}

.custom-select-options {
  display: none;
  position: absolute;
  top:calc( 100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(21, 57, 55, 0.15);
  border-top: none;
  border-radius:8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-select-options.show {
  display: block;
}

.custom-select-option {
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  /* transition: background-color 0.2s;
  //border-bottom: 1px solid #f0f0f0; */
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background-color: rgba(21, 57, 55, 0.05);
}

.custom-select-option.selected {
  background-color: rgba(21, 57, 55, 0.05);
}
.dropdown-arrow {
	display: flex;
}
.custom-select-wrapper.open .dropdown-arrow {
  transform: rotate(180deg);
}

.ajax-apply-filter-btn {
  background-color: var(--color-brand);
  border-radius: 1000px;
  padding: 8px 24px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.18px;
  color: rgba(0, 0, 0, 1);
	border: none;
}

.ajax-apply-filter-btn:hover {
  background: #F7D4C9;
  color: rgba(0, 0, 0, 1);
}
/* .ajax-apply-filter-btn:focus {
  background: rgba(239, 171, 150, 1);
  color: rgba(0, 0, 0, 1);
} */


/* Events Filter */

.ajax-event-filters{
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ajax-event-filters .filters-wrapper{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
 @media (max-width: 1024px) {
    .ajax-event-filters .filters-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
  }
 @media (max-width: 768px) {
    .ajax-event-filters .filters-wrapper {
        grid-template-columns: repeat(1, 1fr);
        gap: var(--spacing-lg);
    }
  }
.flex-center{
  display: flex;
  align-items: center;
	justify-content : center;
}

.ajax-event-date{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 138%;
  letter-spacing: -0.12px;
  color: #D53E0F;
}
.ajax-event-title h3{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 138%;
  letter-spacing: -0.12px;
  color: #000000;
  margin:0;
}
.ajax-event-meta{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.06px;
  color: #4A5A54;
}
.ajax-event-item{
  border-right: 1px solid rgba(21, 57, 55, 0.15);
}
.ajax-event-item a{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ajax-event-item:nth-child(3n),
.ajax-event-item:last-child {
  border-right: none;
}

.ajax-event-grid{
  gap: 40px;
}
.ajax-event-item{
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1024px) {
  .ajax-event-item:nth-child(3n){
    border-right: 1px solid rgba(21, 57, 55, 0.15);
  }
  .ajax-event-item:nth-child(2n),
  .ajax-event-item:last-child {
    border-right: none;
  }
}
@media (max-width: 768px){
  .ajax-event-item{
    border-right: none !important;
    border-bottom: 1px solid rgba(21, 57, 55, 0.15);
    padding-bottom: 16px;
  }
  .ajax-event-item:last-child{
    border-bottom: none !important;
  }
  .ajax-event-grid{
    gap: 24px;
  }
}

/* Tool Tip */

.tooltip {
  position: relative;
  border-bottom: 1px solid #4A5A54;
  color: #4A5A54;
  cursor: help;
  line-height: normal;
  display: inline-block;
}

/* Tooltip box (above element) */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  background: #4A5A54;
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  width: 315px;
  bottom: calc(100% + 12px); /* place above + leave space for arrow */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(21, 57, 55, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 8;
}

/* Arrow now points downward (toward element) */
.tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px); /* align just below tooltip box */
  left: 50%;
  transform: translateX(-50%) ; /* flip SVG vertically */
  width: 20px;
  height: 11px;
  background: url('data:image/svg+xml,<svg width="21" height="11" viewBox="0 0 21 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.55153 9.37907L0 0H10.0294H20.0588L11.5073 9.37906C10.7141 10.2491 9.34475 10.2491 8.55153 9.37907Z" fill="%234A5A54"/><path d="M0.54248 0.6875L8.55791 9.4001C9.3502 10.2613 10.7094 10.2613 11.5017 9.40009L19.517 0.6875" stroke="%23153937" stroke-opacity="0.8" stroke-linecap="round"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0;
  z-index: 9;

}

/* Show tooltip on hover */
.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

@media (max-width: 768px){
	.tooltip::after{
		transform: translateX(0%);
		width: 160px;
		left: 0;
	}
}
.flex-center{
	gap:16px;
}
#ajax-event-clear {
    display: none;
	background: transparent;
	padding:0;
    padding-bottom: 8px ;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.18px;
    color: rgba(0, 0, 0, 1);
    border:none;
	border-bottom: 2px solid var(--color-brand);
	display: flex;
	align-items: center;
	gap:4px;
}
#ajax-event-clear:hover{
	border-bottom:2px solid #F7D4C9;
}