/* Event Grid Styles */
.event-grid-wrapper {
    margin: 20px 0;
    padding: 0 15px;
}

.event-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.event-card-image {
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    flex-shrink: 0;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 16px;
    background: #f0f0f0;
}

.event-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2ecc71;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
}

.event-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    line-height: 1.3;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.event-title a:hover {
    color: #3498db;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.event-description {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    flex: 1;
}

.event-description p {
    margin: 0 0 10px 0;
}

.event-description p:last-child {
    margin-bottom: 0;
}

.event-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Gallery Section - Below Description */
.event-gallery-section {
    margin: 10px 0 15px 0;
}

.event-gallery-preview {
    padding: 10px 0;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    border-color: #3498db;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-gallery {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.gallery-link {
    text-align: center;
    margin-top: 8px;
}

.view-gallery {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.view-gallery:hover {
    text-decoration: underline;
}

.no-gallery {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 10px 0;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.event-footer-left {
    display: flex;
    align-items: center;
}

.booking-amount {
    font-weight: 700;
    color: #2c3e50;
    font-size: 18px;
}

.booking-amount .price-label {
    font-weight: 400;
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.booking-amount.free {
    color: #27ae60;
}

.book-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.book-now-btn:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.booking-disabled {
    color: #999;
    font-size: 13px;
}

.event-pagination {
    margin: 40px 0;
    text-align: center;
}

.event-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.event-pagination .page-numbers.current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.event-pagination .page-numbers:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.event-pagination .page-numbers.current:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.no-events {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 18px;
}

/* Single Event Styles */
.single-event-details {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.single-event-details h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 32px;
}

.event-featured-image {
    margin-bottom: 30px;
}

.event-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-details-meta {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.event-meta-table {
    width: 100%;
    border-collapse: collapse;
}

.event-meta-table tr {
    border-bottom: 1px solid #e9ecef;
}

.event-meta-table tr:last-child {
    border-bottom: none;
}

.event-meta-table th {
    text-align: left;
    padding: 10px 20px 10px 0;
    font-weight: 600;
    color: #555;
    width: 150px;
}

.event-meta-table td {
    padding: 10px 0;
    color: #333;
}

.event-description-full {
    margin-bottom: 30px;
    line-height: 1.8;
}

.event-description-full h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.event-gallery-full {
    margin: 30px 0;
}

.event-gallery-full h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item-full {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.gallery-item-full:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.gallery-item-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-booking-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.book-now-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.book-now-large:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .event-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .event-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card-image {
        height: 180px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-meta {
        gap: 6px;
        font-size: 12px;
    }
    
    .event-meta span {
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .event-description {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .event-footer-right {
        width: 100%;
    }
    
    .book-now-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .gallery-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .event-meta-table th {
        width: 80px;
    }
    
    .book-now-large {
        padding: 15px 30px;
        font-size: 18px;
        width: 100%;
        justify-content: center;
    }
    
    .gallery-thumb {
        width: 50px;
        height: 50px;
    }
    
    .single-event-details h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .event-card {
        border-radius: 8px;
    }
    
    .event-card-image {
        height: 150px;
    }
    
    .event-price-badge {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .event-card-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .booking-amount {
        font-size: 16px;
    }
    
    .event-meta {
        font-size: 11px;
    }
    
    .event-meta span {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    .gallery-thumb {
        width: 40px;
        height: 40px;
    }
}