.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Ensure minmax is correctly applied */
    gap: 2px; /* Adjust the gap between items as needed */
}

.media-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 20px;
    background-color: #f0f0f0; /* Optional: Add background color */
    border: 1px solid #ddd; /* Optional: Add border */
    margin-bottom: 16px; /* Add some space between rows */
    max-width:315px;
}

.media-item-content {
    display: flex;
    flex-direction: row; /* Arrange items in a row */
    margin-bottom: 10px; /* Add some space between content and footer */

}

.media-item-left {
    flex-shrink: 0;
    margin-right: 10px; /* Space between image and text */
    max-width:50%;
}

.media-item-left img {
    max-width: 95% !important; /* Adjust as needed */
    height: auto;
    display: block;
}

.media-item-right {
    flex: 1;
}

.media-item-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-family:'Montserrat';
    font-size:18px;
    color:#4C4C4C;
}

.media-item-description {
    margin-bottom: 5px;
    
    font-family:'Montserrat';
}

.media-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.media-item-category {
    font-size: 0.9em;
    color: #4C4C4C;
    flex: 1;
    font-size:14px;
    font-family:'Montserrat';
    font-weight:600;
    margin-bottom:20px;
}

.media-item-buttons {
    display: flex;
    gap: 10px; /* Add gap between buttons */
    justify-content: right;
    font-weight:bold;
}

.media-item-buttons a {
    text-decoration: none;
    color: #0073aa;
    font-size: 0.9em;
}

.media-item-buttons a:hover {
    color: #005177;
}

.media-item-buttons i {
    margin-right: 5px;
}

.box-href {
    text-decoration: none !important;

}

.media-item a {
  color :#4c4c4c;
}

.media-item:hover {
    background: #FFDCDE;
}

.select-container {
    position: relative;
    margin-bottom: 10px;
    max-width: 250px;
}

.select-container::after {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color:#333;
    font-size:12px;
}
.select-container::after {
    content: '\25BC'; /* Unicode for down arrow */
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #333; /* Arrow color */
    font-size: 12px; /* Adjust size as needed */
}

#subcategory-selector {
    appearance: none;
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none; /* Remove default arrow in some browsers */
    -moz-appearance: none; /* Remove default arrow in some browsers */
}

#subcategory-selector:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

