.event-badges {
    margin: 10px 0 5px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-badge {
    display: inline-block;
    background: #9F1113;
    color: #fff;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 16px;
    padding: 3px 14px;
    margin-right: 4px;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.events-calendar-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 24px 28px 18px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-item h3 {
    margin: 0 0 8px 0;
    color: #222;
    font-size: 1.6em;
    font-weight: 700;
}

.event-date {
    color: #222;
    font-size: 1.1em;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-description {
    color: #444;
    margin: 12px 0 0 0;
    font-size: 1.05em;
    line-height: 1.5;
}

.event-card-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
}

.event-card-date-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid #9F1113;
    border-radius: 8px;
    width: 48px;
    margin-bottom: 12px;
    margin-top: 4px;
    box-shadow: 0 2px 6px rgba(159,17,19,0.08);
}
.event-date-day {
    font-size: 1.3em;
    font-weight: 700;
    color: #9F1113;
    margin-top: 6px;
}
.event-date-month {
    font-size: 1em;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.event-img-placeholder {
    width: 120px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.event-meta {
    margin: 12px 0 0 0;
}
.event-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 1.08em;
}
.event-meta-icon {
    font-size: 1.1em;
    color: #9F1113;
}
.event-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}
.event-action-main {
    background: #9F1113;
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    padding: 10px 22px;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
}
.event-action-main:hover {
    background: #7c0d10;
}
.event-action-secondary {
    background: #e5e5e5;
    color: #222;
    font-weight: 600;
    border-radius: 4px;
    padding: 10px 22px;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
}
.event-action-secondary:hover {
    background: #cccccc;
}

/* Grid Layout */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Event Card */
.event-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Date badge */
.event-date-badge-container {
    position: relative;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #fff;
    color: #333;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

.event-date-badge {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px;
    width: 60px;
    text-align: center;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.event-date-month {
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
    font-weight: 600;
    line-height: 1;
}

.event-date-day {
    font-size: 20px;
    font-weight: 700;
    color: #9F1113;
    line-height: 1.1;
}

/* Event image */
.event-image-container {
    width: 300px;
    min-width: 300px;
    overflow: hidden;
    position: relative;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

/* Event content */
.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #222;
}

/* Tags/categories */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.event-tag {
    background-color: #f1f1f1;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 30px;
}

.event-tag-muaythai {
    background-color: #9F1113;
    color: white;
}

.event-tag-kickboxing {
    background-color: #27ae60;
    color: white;
}

.event-tag-jiujitsu {
    background-color: #2980b9;
    color: white;
}

.event-tag-mma {
    background-color: #666;
    color: white;
}

/* Event details styles */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.event-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    border-radius: 50%;
    font-size: 12px;
}

.event-donation-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #4CAF50;
}

.event-donation-label .event-detail-icon {
    background-color: rgba(76, 175, 80, 0.1);
}

/* Event action buttons */
.event-actions {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
}

.event-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.event-button-primary {
    background-color: #2563EB;
    color: white;
    border: none;
}

.event-button-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.event-button-secondary {
    background-color: transparent;
    color: #2563EB;
    border: 1px solid #2563EB;
}

.event-button-secondary:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

/* Event description */
.event-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

/* Free badge */
.event-free-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #27ae60;
    color: white;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-image-container {
        width: 100%;
        height: 180px;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-button {
        width: 100%;
    }
}

/* Empty State */
.events-empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.events-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.events-empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #555;
}

.events-empty-state p {
    margin: 0;
    font-size: 16px;
    color: #888;
}

/* Stripe payment form styling */
#stripe-ticket-form {
    margin-top: 24px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stripe-form-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.stripe-field-container {
    margin-bottom: 20px;
}

.stripe-field-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

#stripe-email-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

.stripe-element {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.stripe-errors {
    color: #e74c3c;
    margin-top: 8px;
    font-size: 14px;
}

#stripe-pay-button {
    background-color: #9F1113;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

#stripe-pay-button:hover {
    background-color: #7d0d0f;
}

#stripe-pay-button:disabled {
    background-color: #d9837f;
    cursor: not-allowed;
}

#stripe-payment-messages {
    margin-top: 16px;
}

.error-message {
    color: #e74c3c;
    padding: 12px;
    background-color: #fef5f5;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

.info-message {
    color: #3498db;
    padding: 12px;
    background-color: #f0f9ff;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

#stripe-processing-message {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

#stripe-processing-message .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9F1113;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-success {
    text-align: center;
    padding: 30px 20px;
    background-color: #f0fff4;
    border-radius: 8px;
    border: 1px solid #c6f6d5;
}

.payment-success h3 {
    color: #38a169;
    margin-bottom: 15px;
    font-size: 24px;
}

.payment-success p {
    margin-bottom: 12px;
    color: #555;
}

/* Events Index Title */
.events-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.events-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #9F1113;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Event Grid Improvements */
@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

/* Improve Event Navigation */
.event-details-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    color: #9F1113;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 28px;
}

.event-details-back:before {
    content: '←';
    position: absolute;
    left: 0;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.event-details-back:hover {
    color: #7d0d0f;
}

.event-details-back:hover:before {
    transform: translateX(-4px);
}

/* Add Free badge styles */
.event-free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    color: #27ae60;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Update event card for free events */
.event-card[data-free="true"] .event-card-header {
    position: relative;
}

/* In the details page */
.event-details-free-badge {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Event Details Page */
.event-details-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 30px;
}

.event-details-header {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    color: white;
}

.event-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.event-details-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.event-date-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2563EB;
}

.event-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}

.event-details-header-content {
    width: 100%;
    position: relative;
}

.event-details-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-details-free-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
}

.event-details-content {
    padding: 30px;
}

.event-details-section {
    margin-bottom: 30px;
}

.event-details-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.event-details-info .event-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.event-details-info .event-detail-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.event-details-info .donation-icon {
    background-color: rgba(76, 175, 80, 0.1);
}

.event-detail-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
}

.event-detail-text {
    font-weight: 500;
    color: #333;
}

.event-details-info .donation-text {
    color: #4CAF50;
    font-weight: 600;
}

.event-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-details-description {
    line-height: 1.6;
    color: #555;
}

.event-payment-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Responsive adjustments for details page */
@media (max-width: 768px) {
    .event-details-header {
        height: 220px;
    }
    
    .event-details-overlay {
        padding: 20px;
    }
    
    .event-details-title {
        font-size: 24px;
    }
    
    .event-details-content {
        padding: 20px;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Make entire card clickable */
.event-card-link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.event-card-link .event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-actions {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
}

/* Back to Events button */
.event-back-button-container {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.event-back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 15px;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.event-back-button:hover {
    background-color: #e0e0e0;
    color: #222;
    text-decoration: none;
}

.event-back-button svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
} 