/* Acara Styles */
:root {
    --primary-color: #1a4d8f;
    --primary-light: #3a6db0;
    --secondary-color: #e67e22;
    --secondary-light: #ff9933;
    --text-color: #333;
    --text-muted: #6c757d;
    --light-gray: #f8f9fa;
    --lighter-gray: #f1f3f5;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Playfair Display', serif;
}

.page-hero p {
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

/* Event Grid */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    align-items: stretch;
    min-height: 0;  /* Allows the grid to shrink below its minimum content size */
    min-width: 0;   /* Allows the grid to shrink below its minimum content size */
}

/* Slider Container */
.event-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-slider-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.event-slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.event-slide.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .event-slider-container {
        padding: 0 1rem;
    }
    
    .slider-nav {
        width: 36px;
        height: 36px;
    }
    
    .slider-nav.prev {
        left: 0;
    }
    
    .slider-nav.next {
        right: 0;
    }
}

.slider-dot.active {
    background-color: var(--primary-color);
    width: 20px;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
}

.event-card {
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 133.33%; /* 3:4 Portrait Aspect Ratio (height/width = 4/3 = 1.3333) */
    overflow: hidden;
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .event-image {
        padding-top: 133.33%; /* Maintain portrait aspect ratio on mobile */
    }
}

.event-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: all 0.3s ease;
}

.event-card:hover .event-image img {
    transform: translate(-50%, -50%) scale(1.02);
    opacity: 0.95;
}

.event-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allows the content to shrink */
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.event-date {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1rem;
}

.event-description {
    color: #4a5568;
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-detail:hover {
    color: #2563eb;
}

.btn-detail i {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.btn-detail:hover i {
    transform: translateX(3px);
}

/* No Image Placeholder */
.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    background-color: #f7fafc;
}

.no-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #cbd5e0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1.5rem;
}

.pagination > * {
    margin: 0 0.25rem;
}

.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    background: white;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.pagination a:hover {
    background: #f7fafc;
    color: #3b82f6;
    border-color: #cbd5e0;
}

.pagination .active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.paginat.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.slider-nav:not(:disabled):hover {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
}

.event-date {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.event-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    max-height: 3.2em;
}

.event-title a:hover {
    color: var(--primary-color);
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.event-title:hover::after {
    width: 100%;
}

.event-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.event-meta i {
    color: var(--secondary-color);
    margin-right: 0.25rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 77, 143, 0.2);
    color: white;
}

.btn-primary i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.btn-primary:hover i {
    transform: translateX(3px);
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.filter-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.1);
    outline: none;
}

/* No Events */
.no-events {
    text-align: center;
    padding: 3rem 0;
    grid-column: 1 / -1;
}

.no-events i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-events h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-events p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .page-hero {
        padding: 4rem 0;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 3rem 0;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .event-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-content {
        padding: 1.25rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-excerpt {
        font-size: 0.95rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-buttons .btn {
        width: 100%;
    }
}
