/* PIPTA Events Styles - Green Theme (#084325) */
.pipta-events-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

.pipta-events-header h1 {
    color: #084325;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 3px solid #084325;
    padding-bottom: 0.5rem;
}

.events-filter {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #084325;
}

.filter-category strong {
    display: block;
    margin-bottom: 1rem;
    color: #084325;
    font-size: 1.2rem;
    font-weight: 600;
}

.filter-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.filter-links li {
    margin: 0;
}

.filter-links a {
    text-decoration: none;
    color: #666;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.filter-links a.active,
.filter-links a:hover {
    color: #084325;
}

.filter-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #084325;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(8, 67, 37, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(8, 67, 37, 0.15);
    border-color: #084325;
}

.event-status {
    background: linear-gradient(135deg, #084325, #0a572d);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seats-left {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Event card layout with left-side image */
.event-card-content {
    display: flex;
    min-height: 300px;
}

.event-image {
    flex: 0 0 300px;
    width: 300px;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

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

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

.event-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-title {
    color: #084325;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.3;
}

/* FIXED: Description font size 15px */
.event-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 15px; /* Changed to 15px */
    flex: 1;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #084325;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #555;
    font-size: 1.2rem;
}

.detail-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.detail-text {
    font-weight: 500;
    flex: 1;
}

.detail-text strong {
    color: #084325;
	font-size: 14px;
    font-weight: 600;
}

.event-actions {
    display: flex;
    gap: 1rem;
}

.btn-register,
.btn-learn-more {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-register {
    background: #084325;
    color: white;
    border: 2px solid #084325;
}

.btn-register:hover {
    background: #0a572d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 67, 37, 0.3);
}

.btn-learn-more {
    background: transparent;
    color: #084325;
    border: 2px solid #084325;
}

.btn-learn-more:hover {
    background: #084325;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 67, 37, 0.3);
}

/* Modal Styles */
.pipta-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.pipta-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(8, 67, 37, 0.2);
    border: 2px solid #084325;
}

.pipta-modal-header {
    background: #084325;
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipta-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}

.pipta-modal-close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    line-height: 1;
    transition: color 0.3s ease;
}

.pipta-modal-close:hover {
    color: #e8f5e8;
}

.pipta-modal-body {
    padding: 2rem;
}

/* Registration Form Styles */
.pipta-registration-form {
    max-width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #084325;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e8f5e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #084325;
    background: white;
    box-shadow: 0 0 0 3px rgba(8, 67, 37, 0.1);
}

.btn-register-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: #084325;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-register-submit:hover:not(:disabled) {
    background: #0a572d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 67, 37, 0.3);
}

.btn-register-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* No events message */
.no-events {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #084325;
}

.no-events p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Completed events styling */
.event-card[data-status="completed"] {
    opacity: 0.8;
    border-color: #95a5a6;
}

.event-card[data-status="completed"] .event-status {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.event-card[data-status="completed"] .btn-register {
    background: #95a5a6;
    border-color: #95a5a6;
    cursor: not-allowed;
}

.event-card[data-status="completed"] .btn-register:hover {
    background: #95a5a6;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pipta-events-container {
        margin: 0 1rem;
    }
    
    .filter-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-status {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .event-card-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .event-image {
        flex: 0 0 200px;
        width: 100%;
        height: 200px;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .pipta-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .event-details {
        padding: 1rem;
    }
    
    /* Mobile font size adjustments */
    .event-description {
        font-size: 14px; /* Slightly smaller on mobile */
    }
}

/* Animation for event cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeInUp 0.6s ease-out;
}

.event-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.event-card:nth-child(even) {
    animation-delay: 0.2s;
}