/* Modern News List Overrides - Iteration 10 (Restored Tags & Fixed Bloom) */

/* Grid Alignment & Layout */
.grid {
    margin: 0 auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center items */
    width: 100%;
}

/* Ensure columns behave correctly without Isotope */
.grid .col-lg-4 {
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-bottom: 30px;
    /* Ensure spacing */
}

/* Card Container */
.meeting-item {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* Removed border as requested */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.meeting-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Image Area */
.meeting-item .thumb {
    overflow: hidden;
    position: relative;
    height: 240px;
}

.meeting-item .thumb img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8);
    /* Initial grayscale state */
    transition: transform 0.6s ease, filter 0.6s ease;
    /* Smooth transition for revert */
}

.meeting-item:hover .thumb img {
    animation: bloom ease-in-out .75s forwards;
    /* Trigger bloom animation */
}

/* Bloom Animation (Replicated from Team Page) */
@keyframes bloom {
    0% {
        filter: grayscale(0.7);
        transform: scale(1.0);
    }

    40% {
        filter: grayscale(0.5);
        transform: scale(1.05);
    }

    100% {
        filter: grayscale(0);
        transform: scale(1.04);
    }
}

/* Category Tags - Pill Style */
.meeting-item .thumb .price {
    position: absolute;
    /* Fix: Restore absolute positioning */
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 10;
    /* Ensure it's above the image */
}

.meeting-item .thumb .price span {
    background: rgba(31, 39, 43, 0.85);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
}

/* Content Area - Grid Layout for Style B */
.meeting-item .down-content {
    border-radius: 0;
    padding: 25px;
    flex-grow: 1;
    display: grid;
    /* Use Grid for Side-by-Side layout */
    grid-template-columns: min-content 1fr;
    /* Date | Content */
    grid-template-areas:
        "date title"
        "date desc";
    gap: 0 25px;
    /* Space between date and text */
    position: relative;
    background: #fff;
    align-items: start;
}

/* Date Styling - Style B (Magazine Stack) */
.meeting-item .down-content .date {
    grid-area: date;
    float: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    width: auto;
    min-width: 60px;
    background: transparent;
    border-right: 1px solid #f0f0f0;
    /* Subtle separator */
    padding-right: 20px;
    height: 100%;
    /* Full height for separator */
}

/* Remove old accent line */
.meeting-item .down-content .date::before {
    display: none;
}

.meeting-item .down-content .date h6 {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    /* Month/Year color */
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Stack Month - Day - Year */
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.meeting-item .down-content .date h6 span {
    font-size: 36px;
    /* Big Day Number */
    font-weight: 800;
    color: #e4a800;
    /* Gold Accent */
    margin: 8px 0;
    /* Space around number */
    display: block;
    line-height: 0.9;
}

/* Title - Assign to Grid Area */
.meeting-item .down-content>a {
    grid-area: title;
}

.meeting-item .down-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f272b;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;

    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    /* Reserve space for 2 lines */
}

.meeting-item:hover .down-content h4 {
    color: #e4a800;
    font-weight: 700;
}

/* Description - Assign to Grid Area */
.meeting-item .down-content>p {
    grid-area: desc;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    margin-left: 0 !important;
    /* Forced removal as requested */

    /* Clamp description */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Allow a bit more text */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Continue Link */
.meeting-item .down-content a[href*="news-"] {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #e4a800;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.meeting-item .down-content a[href*="news-"]:hover {
    color: #1f272b;
    padding-left: 5px;
}

/* Filters Modernization - Option 3: Bold Block */
section.meetings-page .filters {
    margin-bottom: 60px;
    padding-bottom: 30px;
}

section.meetings-page .filters ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

section.meetings-page .filters li {
    border: 2px solid rgba(255, 255, 255, 0.15);
    /* Thicker, subtle border */
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    /* Bolder text */
    padding: 10px 25px;
    /* Larger click area */
    border-radius: 4px;
    /* Slightly rounded block */
    margin: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

section.meetings-page .filters li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    /* Subtle lift */
}

section.meetings-page .filters li.active {
    background-color: #e4a800;
    border-color: #e4a800;
    color: #1f272b;
    /* Dark text for high contrast */
    box-shadow: 0 4px 15px rgba(228, 168, 0, 0.4);
    transform: translateY(-2px);
}

/* No Results Message */
.no-results-message {
    padding: 40px;
    width: 100%;
}

.no-results-message .alert {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .meeting-item .thumb {
        height: 200px;
    }

    .meeting-item .down-content {
        padding: 20px;
    }

    .meeting-item .down-content h4 {
        font-size: 1.1rem;
    }
}