/* Trece Events Styles - Minimalist & Elegant */

/* Container & Layout */
.trecevents-container {
    max-width: 1140px;
    /* Standard desktop width */
    width: 100%;
    margin: 40px auto;
    /* Centered with vertical spacing */
    padding: 0 20px;
    /* Side padding for smaller screens */
    box-sizing: border-box;
}

/* Page Header */
.trecevents-container .page-header {
    text-align: center;
    margin-bottom: 60px;
    border: none;
    /* Remove default theme borders if any */
}

.trecevents-container .page-title {
    font-family: inherit;
    /* Inherit theme font */
    font-weight: 300;
    /* Lighter weight for elegance */
    font-size: 3rem;
    margin-bottom: 10px;
    color: #333;
}

.trecevents-container .archive-description {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

/* Section Headings */
.trecevents-section {
    margin-bottom: 60px;
}

.trecevents-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.trecevents-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #333;
}

/* Grid System */
.trecevents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Styles - Minimalist */
.trecevents-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.trecevents-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft elegant shadow */
    border-color: transparent;
}

.trecevents-thumbnail {
    position: relative;
    padding-top: 60%;
    /* Aspect ratio container */
    overflow: hidden;
}

.trecevents-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trecevents-card:hover .trecevents-thumbnail img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.trecevents-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trecevents-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.4;
}

.trecevents-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s;
}

.trecevents-title a:hover {
    color: #555;
}

.trecevents-meta {
    margin-top: auto;
    /* Push to bottom */
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trecevents-meta strong {
    color: #444;
    font-weight: 500;
}

.trecevents-date,
.trecevents-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .trecevents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .trecevents-grid {
        grid-template-columns: 1fr;
    }

    .trecevents-container .page-title {
        font-size: 2.2rem;
    }
}

/* Single Page Meta Box */
.trecevents-single-container {
    max-width: 1280px;
    /* Reading width for single post */
    margin: 0 auto;
    padding: 40px 20px;
}

.trecevents-meta-box-full {
    margin-top: 60px;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #333;
    /* Elegant accent */
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.trecevents-meta-box-full h3 {
    margin-top: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #333;
}

.trecevents-meta-box-full ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
}

.trecevents-meta-box-full ul li:last-child {
    border-bottom: none;
}

.trecevents-meta-box-full ul li strong {
    color: #333;
    font-weight: 600;
}