/* Layout principal */
.site-main {
    background: #f5f7f9;
    padding: 3rem 0;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper {
    display: flex;
    gap: 2.5rem;
}

/* Contenido principal */
.eventos-content {
    flex: 1;
    min-width: 0;
}

.eventos-tipo-titulo {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.eventos-tipo-titulo:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #e1af1a; /* Changed from #0073aa */
}

/* Flexbox para eventos - 3 cards per row with grid-like behavior */
.eventos-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem; /* Negative margin to offset the padding */
}

/* Estilos de card de evento - Coinciden con front-page.php */
.evento {
    flex: 0 0 calc(33.333% - 1.5rem); /* 3 cards per row with spacing */
    margin: 0.75rem; /* Half of the gap (1.5rem) */
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease; /* Changed from transform to all for smoother transitions */
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 1.5rem); /* Adjust for margin */
    border-bottom: 3px solid transparent; /* Transparent border by default */
}

.evento:hover {
    transform: translateY(-3px);
    background-color: #fffbf0; /* Very light gold background */
    box-shadow: 0 6px 16px rgba(225, 175, 26, 0.15); /* Gold-tinted shadow */
}

.evento-img-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.evento-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.evento:hover .evento-img {
    transform: scale(1.05);
}

/* Card text colors - Make all text black on hover for better contrast */
.evento-info {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.evento:hover .evento-info {
    background-color: #e1af1a; /* Ensure the info section is gold too */
}

.evento-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    color: #333;
    transition: color 0.2s ease;
}

.evento-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.evento:hover .evento-info h3 a {
    color: #000000; /* Black text on hover for better contrast */
    font-weight: 700; /* Make text slightly bolder on hover */
}

.evento-fecha,
.evento-lugar {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    color: #666;
    transition: color 0.2s ease;
}

/* Add icons styling if you have them */
.evento-fecha i,
.evento-lugar i {
    color: #999; /* Default icon color */
    margin-right: 0.25rem;
    transition: color 0.2s ease;
}

/* Change icon colors on hover */
.evento:hover .evento-fecha i,
.evento:hover .evento-lugar i {
    color: #000000; /* Black icon color on hover for contrast */
}

/* Make date and location text black on hover */
.evento:hover .evento-fecha,
.evento:hover .evento-lugar {
    color: #000000; /* Black text for better contrast against gold */
}

/* Paginación */
.navigation.pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #666;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers.current {
    background: #e1af1a; /* Changed from #0073aa */
    border-color: #e1af1a; /* Changed from #0073aa */
    color: white;
}

.page-numbers:hover:not(.current) {
    background: #f5f7f9;
    border-color: #d1d5db;
}

/* Mensaje sin eventos */
.no-eventos {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-eventos p {
    color: #666;
    margin-bottom: 1rem;
}

.volver-eventos {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #e1af1a; /* Changed from #0073aa */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.volver-eventos:hover {
    background: #c59b14; /* Changed from #005a87 to darker gold */
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .evento {
        flex: 0 0 calc(33.333% - 1.5rem); /* Keep 3 columns on large screens */
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .evento {
        flex: 0 0 calc(50% - 1.5rem); /* Drop to 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 2rem 0;
    }

    .page-container {
        padding: 0 1rem;
    }

    .evento {
        flex: 0 0 calc(100% - 1.5rem); /* Single column on mobile */
    }

    .eventos-tipo-titulo {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .site-main {
        padding: 1rem 0;
    }
    
    .evento-info {
        padding: 0.65rem;
    }
    
    .evento-img-container {
        padding-bottom: 60%; /* Slightly taller ratio on mobile */
    }
    
    .eventos-grid {
        margin: -0.5rem; /* Smaller spacing on mobile */
    }
    
    .evento {
        margin: 0.5rem; /* Smaller spacing on mobile */
        flex: 0 0 calc(100% - 1rem); /* Adjust for smaller margin */
    }
}

