/* ===========================
   Filters Section (Events)
=========================== */
.events-filters {
    background: #a7c1b0; /* soft green background */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Base row layout */
.events-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
    padding-bottom: 5px;
}

/* Default widths for desktop (≥1025px) */
.events-filter-search {
    width: 73%;
}

.events-filter-type {
    width: 25%;
}

.events-filter-category {
    width: 25%;
}

.events-filter-date {
    width: 46%;
}

.events-filter-col.events-buttons {
    width: 25%;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-around;
}

/* Labels and inputs */
.events-filter-col label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.events-filter-col input,
.events-filter-col select {
    padding: 10px 10px !important;
    border-radius: 6px !important;
    width: 100% !important;
    background: white !important;
}

.events-filter-col select {
    appearance: none; /* Remove default styling */
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
}

/* Buttons */
.events-btn-apply {
    background: #d7de70;
    border: none;
    padding: 8px 20px !important;
    height: 43px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px !important;
}

/* -----------------------
   Tablet: stack rows (641px - 1024px)
------------------------- */
@media (max-width: 1024px) and (min-width: 641px) {
    .events-filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .events-filter-search,
    .events-filter-type,
    .events-filter-category,
    .events-filter-date,
    .events-filter-col.events-buttons {
        width: 100% !important;
    }

    .events-filter-col.events-buttons {
        justify-content: flex-start;
    }
}

/* -----------------------
   Mobile: stacked layout, buttons last (≤640px)
------------------------- */
@media (max-width: 640px) {
    .events-filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .events-filter-search,
    .events-filter-type,
    .events-filter-category,
    .events-filter-date {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .events-filter-col.events-buttons {
        order: 99; /* always last */
        width: 100% !important;
        justify-content: space-between;
        padding-bottom: 20px;
    }

    .events-btn-apply {
        width: 100%;
    }
}



/* Grid section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tablet (2 per row) */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile (1 per row) */
@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr !important;
    }
}

.event-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform .2s ease;
}
.event-card:hover {
    transform: translateY(-4px);
}
.event-card-inner {
    display: flex;
    gap: 15px;
    padding: 20px;
    align-items: flex-start;
}

.website-location {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.event-website, .event-location {
    display: flex;
    gap: 2px;
}
.event-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.event-name {
    margin: 0;
    font-weight: 600;
}
.event-website,
.event-location {
    font-size: 0.9rem;
    color: #555;
    margin: 2px 0;
}
.event-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.event-tag {
    background: #234;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.event-taxonomies {
    display: flex;
    gap: 20px;
}

.event-website .icon,
.event-location .icon,
.event-website .dashicons,
.event-location .dashicons {
    margin-right: 6px;
    vertical-align: middle;
}

.events-directory-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    padding-bottom: 40px;
    margin-top: 40px;
}

/* Sections */
.pd-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.pd-section h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}
.pd-modal-expertise span,
.pd-modal-benefits span {
    display: inline-block;
    background: #3b5d50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    margin: 3px 5px 0 0;
}



/*tabs section*/
.events-tabs {
    display: flex;
    margin-bottom: 20px;
    background: #668273;
    border-radius: 20px;
}
.events-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 5px;
    background: #668273 ;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 20px;
    margin: 5px;
}
.events-tabs .tab.active {
    background: #1a2921;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.event-type-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3b5d50;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.event-banner img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.event-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 15px;
    font-size: 25px;
}
.event-meta {
    list-style: none;
    padding: 0 0 10px;
    font-size: 14px;
    margin: 0 15px;
}

.each-meta {
    display: flex;
    gap: 30%;
}
.event-meta li {
    margin-bottom: 5px;
}

.event-data-table, .event-data-table th, .event-data-table td {
    border: none;
    border-collapse: collapse;
    background-color: white !important;
    font-size: 16px !important;
}

.date-range-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.date-range-wrapper input[type="date"] {
    flex: 1;
}
.date-separator {
    font-size: 14px;
    color: #555;
}

.events-card-banner {
    position: relative; /* allow absolute positioning inside */
}

/* Label styles */
.events-type-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #52b8b0;   /* dark green like your design */
    color: #555;
    font-size: 12px;
    border-radius: 20px;
    text-transform: uppercase;
    padding: 5px 21px;
}

.no-events {
    text-align: center;
    padding: 40px 0;
}

.no-events img {
    max-width: 300px; /* adjust size */
    opacity: 0.8;     /* optional styling */
}
.copy-toast {
    visibility: hidden;
    min-width: 180px;
    background: #d6de70;
    color: #555;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

.copy-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 60px; /* slide up a bit */
}

/* Mobile */
@media (max-width: 640px) {
    .events-filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .events-filter-search,
    .events-filter-col2,
    .events-filter-date,
    .events-buttons {
        width: 100% !important;
        margin-right: 0;
    }

    .events-btn-apply {
        width: 100%;
    }

    .event-title-row {
        font-size: 20px; /* shrink titles a bit */
    }

    .event-meta {
        font-size: 13px;
    }
}
