
.event-detail-container {
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Block (Header) */
.event-detail-hero {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    align-items: flex-start;
}

/* Image Section */
.event-detail-image-wrapper {
    width: 25%;
    flex-shrink: 0;
    min-width: 220px;
}

.event-detail-banner {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    object-fit: cover;
}

/* Info Section */
.event-detail-info-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
}

.event-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    color: #555;
    font-size: 0.95rem;
}

.event-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-detail-icon {
    font-size: 1.2em;
    opacity: 0.8;
}

/* Actions (Buttons) Area */
.event-detail-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.event-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.event-detail-btn-register {
    background-color: #28a745;
    color: white;
}
.event-detail-btn-register:hover {
    background-color: #218838;
    color: white;
    text-decoration: none;
}

.event-detail-btn-program {
    background-color: #17a2b8; /* Teal color for PDF */
    color: white;
}
.event-detail-btn-program:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
}

.event-detail-btn-disabled {
    background-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}

.event-detail-registered-badge {
    background: #d4edda;
    color: #155724;
    padding: 12px 25px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    font-weight: bold;
    display: inline-block;
}

.event-detail-login-note {
    width: 100%; /* Force to new line */
    font-size: 0.9rem;
    color: #dc3545;
    margin-top: 8px;
    font-style: italic;
}

/* Content Grid (Bottom) */
.event-detail-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.event-detail-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-detail-section-title {
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #444;
}

.event-detail-text {
    line-height: 1.7;
    color: #333;
}
.event-detail-text img {
    max-width: 100%;
    height: auto;
}

/* Speakers List */
.event-detail-speakers-list {
    list-style: none;
    padding: 0;
}
.event-detail-speakers-list li {
    background: #f8f9fa;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    font-weight: 500;
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .event-detail-hero {
        flex-direction: column;
        align-items: center;
    }
    .event-detail-image-wrapper {
        width: 100%;
        max-width: 400px;
    }
    .event-detail-content-grid {
        grid-template-columns: 1fr;
    }
    .event-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .event-detail-btn {
        width: 100%;
    }
}