/* Seminar Plugin Frontend Styles */


/* List View */
.seminar-list-item {
    border: 1px solid #008659;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 5px;
}

.seminar-thumbnail img {
    max-width: 200px;
    height: auto;
    object-fit: cover;
}

.seminar-content {
    flex: 1;
}

.seminar-excerpt {
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Calendar View */
.seminar-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.seminar-calendar-table th {
    background: #008659;
    padding: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
    color: #fff;
}

.seminar-calendar-table td {
    /* min-height removed, handled by inner div */
    vertical-align: top;
    border: 1px solid #dee2e6;
    padding: 0;
    /* Removing padding from TD as inner div manages it */
    width: 14.28%;
}

.seminar-calendar-day {
    min-height: 100px;
    padding: 5px;
    box-sizing: border-box;
}

.seminar-calendar-table td .day-number {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000000;
}

.calendar-events {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

/* Single Seminar View */
body.single-seminar h1.entry-title,
body.single-seminar .post-title,
.single-seminar-title-centered {
    text-align: center;
}

.single-seminar-date-container {
    text-align: center;
    margin-bottom: 25px;
}

.single-seminar-date {
    display: inline-block;
    font-size: 1.1em;
    color: #000000;
    background: #f1f1f1;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Registration Form */
form.seminar-registration-form {
    margin-top: 30px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.seminar-registration-form h3 {
    margin-top: 0;
}

.form-section {
    margin-bottom: 20px;
}

.attendee-block {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #000000;
    margin-bottom: 2rem;
    position: relative;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.attendee-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: 1px solid #008659;
    padding-bottom: 5px;
}

/* Modal Styles */
.seminar-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.seminar-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.seminar-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.seminar-modal-close:hover,
.seminar-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.seminar-modal-body p {
    line-height: 1.6;
}

.seminar-modal-accept {
    margin-top: 20px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {

    /* List View */
    .seminar-list-item {
        flex-direction: column;
    }

    .seminar-thumbnail {
        width: 100%;
        text-align: center;
    }

    .seminar-thumbnail img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* Calendar View */
    .seminar-calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .seminar-calendar-table {
        min-width: 600px;
        /* Ensure table doesn't get squashed */
    }

    .seminar-modal-content {
        width: 90%;
        margin: 20% auto;
    }
}