/* Events List Block */
.resource-list-container{
    display: flex;
}
.resource-list-container .resource-item {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

/* Event Meta Data */

/* Event Title */
.resource-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Event Description */
.resource-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


.resource-filter-sidebar {
    width: 30%;
    /* background-color: #f4f4f4; */
    padding: 20px;
    min-height: 400px;
    border: 2px solid #f4f4f4;
}

.resource-list-wrapper {
    width: 70%;
    padding: 20px;
}
.resource-list-container .resource-list {
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
}
.resource-details {
    width: 70%;
}

.resource-list-container .event-title {
    font-size: 22px;
    margin: 10px 0;
    color: #333;
}

.resource-list-container .resource-image {
   
    height: auto;
}

.resource-list-container .resource-image img {
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    width: 300px;
    height: 250px;
}

.resource-list-container .no-image {
   
    height: auto; /* Default height for placeholder */
    background-color: #e1e1e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-style: italic;
    width: 300px;
    height: 250px;
}

/* Optional - to customize how the placeholder box appears without an image */
.no-image::after {
    content: "No Image Available";
}

.resource-pagination a, 
.resource-pagination span {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 5px;
}

.resource-pagination a:hover:not(.disabled) {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: pointer;
}

.resource-pagination .current-page {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
}

.resource-pagination .disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.resource-pagination .prev, 
.resource-pagination .next {
    font-size: 16px;
}

@media (max-width: 600px) {
    .resource-pagination a, 
    .resource-pagination span {
        padding: 8px 10px;
        font-size: 12px;
    }

    .resource-pagination {
        gap: 5px;
    }
}
/* Search Bar for Events */
.resource-search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  .resource-search-input {
    flex: 2;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 14px;
  }

  
  .find-resources-btn {
    padding: 10px 20px;
    background-color: #DF6C3F;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    color: #fff;
  }

  .reset-resource-btn{
      display: none;
  }

  /* Drop down Base styles */
  .resource-filter-sidebar .filter-dropdown {
    position: relative;
    display: block;
    width: 100%;
    margin: 10px 0;
}

.resource-filter-sidebar .dropdown-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Arrow for the dropdown */
.resource-filter-sidebar .arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    transform: rotate(45deg); /* Initially points down */
    transition: transform 0.3s ease;
}

/* Dropdown content styling */
.resource-filter-sidebar .dropdown-content {
    display: none;
    position: relative;
    background-color: white;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    padding: 10px;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 5px;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

/* Dropdown content items */
.resource-filter-sidebar .dropdown-content label {
    display: block;
    padding: 5px 0;
}

/* Arrow toggle and rotation */
.resource-filter-sidebar .dropdown-toggle:checked + .dropdown-label .arrow {
    transform: rotate(-135deg); /* Points up when dropdown is open */
}

/* Show the dropdown content when checked */
.resource-filter-sidebar .dropdown-toggle:checked + .dropdown-label + .dropdown-content {
    display: block;
}

/* Sliding effect for next dropdown when the first one opens */
.resource-filter-sidebar .dropdown-toggle:checked ~ .filter-dropdown {
    margin-top: 170px; /* Adjust based on content height */
    transition: margin-top 0.3s ease;
}

/* Hide the checkbox input */
.resource-filter-sidebar input[type="checkbox"].dropdown-toggle {
    display: none;
}

  
  /* Hide the checkbox input */
  .resource-filter-sidebar input[type="checkbox"].dropdown-toggle {
    display: none;
  }


/* Basic loading spinner */
.resource-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}
#resource-loading {
  text-align: center;
  padding: 20px;
  display: none;
}

#reset_resource_btn {
    color: #052c68;
    font-weight: 700;
    line-height: 1.5;
    margin: 20px auto 0;
    text-align: center;
    text-decoration: underline !important;
}