/* Base Styles - Clean and Professional */
:root {
    --primary-color: #02AD2F;
    --primary-gradient: linear-gradient(135deg, #02AD2F, #088A29);
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e9ecef;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    padding: 20px;
}

/* Header Styles - Clean and Professional */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Events Grid - Fixed height cards */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Event Card - Clean and Professional */
.event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Black header with white text */
.event-header {
    background: #000;
    color: white;
    padding: 20px;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.event-dates {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
}

.event-venue {
    font-size: 0.9rem;
    color: white;
    font-style: italic;
    font-weight: 500;
}

.event-body {
    padding: 20px;
    flex: 1;
    min-height: 200px;
}

.event-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.event-description {
    margin-bottom: 15px;
    color: #555;
}

.event-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.event-detail-item {
    margin-bottom: 10px;
}

.event-detail-label {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 3px;
}

.event-detail-value {
    font-size: 0.9rem;
    color: #666;
}

.event-cost {
    background: var(--light-gray);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Register Button - Larger and more visible */
.register-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: block;
    margin: 25px auto 20px;
    width: 90%;
    min-height: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(2, 173, 47, 0.4);
    filter: brightness(1.1);
}

/* Modal Styles - Flexbox centering with sticky footer */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5vh auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.close {
    color: #666;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-header p {
    color: #666;
    font-size: 0.85rem;
}

/* Form Styles - Compact */
.registration-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(2, 173, 47, 0.1);
}

/* Very visible submit button - fixed at bottom */
.modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2, 173, 47, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
