/* Webinars Section Styles */

.webinars-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 0;
    border-radius: 12px;
    margin: 40px 0;
}

.webinars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.webinars-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.webinars-header .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.webinars-header .btn-secondary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.webinars-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.webinars-header .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Tabs */
.webinars-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Webinars Container */
.webinars-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.webinar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.webinar-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.webinar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webinar-live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.webinar-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.webinar-category {
    display: inline-block;
    background: #e8f4f8;
    color: #0088cc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}

.webinar-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
    line-height: 1.4;
}

.webinar-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 10px 0;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.webinar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    font-size: 13px;
    color: #95a5a6;
    flex-wrap: wrap;
    gap: 10px;
}

.webinar-host {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.webinar-host-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.webinar-datetime {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.webinar-stats {
    display: flex;
    gap: 12px;
}

.webinar-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.webinar-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.webinar-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.webinar-btn-view {
    background: #667eea;
    color: white;
}

.webinar-btn-view:hover {
    background: #5568d3;
}

.webinar-btn-register {
    background: #11998e;
    color: white;
}

.webinar-btn-register:hover {
    background: #0d7a76;
}

.webinar-btn-success {
    background: #10b981;
    color: white;
}

.webinar-btn-success:hover {
    background: #059669;
}

.webinar-btn-join {
    background: #27ae60;
    color: white;
}

.webinar-btn-join:hover {
    background: #229954;
}

/* Webinar View Modal */
.webinar-modal-content {
    max-width: 900px;
    padding: 40px;
}

.webinar-view-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 20px;
}

.webinar-view-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.webinar-view-category {
    display: inline-block;
    background: #e8f4f8;
    color: #0088cc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
}

.webinar-view-level {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Webinar Poster Display */
.webinar-view-poster {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webinar-view-poster img {
    max-width: 100%;
    height: auto;
    display: block;
}

.webinar-view-thumbnail {
    width: 100%;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.webinar-view-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.webinar-view-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    flex-wrap: wrap;
    gap: 20px;
}

.webinar-view-host {
    display: flex;
    align-items: center;
    gap: 12px;
}

.webinar-view-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.webinar-view-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.webinar-view-info-item strong {
    color: #2c3e50;
}

.webinar-view-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 30px 0;
}

.webinar-view-description p {
    margin-bottom: 16px;
}

.webinar-view-tags {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.webinar-tag {
    display: inline-block;
    background: #f0f3ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.webinar-view-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Empty State */
.empty-webinars {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-webinars-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-webinars h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-webinars p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2c3e50;
}

/* Webinar Form Modal Styles */
.webinar-form-modal {
    max-width: 700px;
    padding: 0;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.webinar-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.webinar-form-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.webinar-form-header p {
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
}

.webinar-form-header .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.webinar-form-header .close:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

/* Form Styles */
.webinar-form {
    padding: 40px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(95vh - 150px);
    overflow-y: auto;
}

.form-section {
    margin-bottom: 35px;
    flex-shrink: 0;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f4f8;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-actions {
    display: flex;
    padding: 20px 40px;
    border-top: 2px solid #ecf0f1;
    flex-shrink: 0
    border-top: 2px solid #ecf0f1;
}

.btn-large {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary.btn-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary.btn-large {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary.btn-large:hover {
    background: #d5dce0;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .webinars-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .webinars-header h2 {
        font-size: 22px;
    }

    .webinars-tabs {
        overflow-x: auto;
    }

    .webinars-container {
        grid-template-columns: 1fr;
    }

    .webinar-modal-content {
        padding: 20px;
    }

    .webinar-view-meta {
        flex-direction: column;
    }

    /* Form Responsive */
    .webinar-form-modal {
        max-width: 95%;
        max-height: 95vh;
    }

    .webinar-form-header {
        padding: 20px;
    }

    .webinar-form-header h2 {
        font-size: 22px;
    }

    .webinar-form {
        padding: 20px;
    }

    .form-section {
        margin-bottom: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-large {
        width: 100%;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-container .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-container .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-container .btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-container #pageInfo {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}
/* AM/PM Button Styles */
.ampm-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ampm-btn {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ecf0f1;
    background: white;
    color: #2c3e50;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ampm-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.ampm-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}