/* Eventin Archive Custom Styles */

.post-type-archive>*>#et-main-area {
    margin-top: 150px;
}

.etn-event-search-wrapper--modern {
    border-radius: 0;
}

.etn-event-search-wrapper--modern .etn-search-field .input-group-prepend .input-group-text {
    color: black;
    background: rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .etn-event-search-wrapper .input-group:not(:last-child)
}

.etn-event-item .etn-event-location {
    color: rgb(75 75 75);
}

.etn-event-item, .etn-event-item .etn-event-thumb {
    border-radius: 0;
}

.etn-event-archive-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 60px 0;
    background: #fff;
}

/* Ensure 1 event per row */
.etn-event-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.etn-event-item-container {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.etn-event-item {
    display: flex;
    flex-direction: row !important;
    background: #fff;
    border: 1px solid #eee;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    transition: opacity 0.3s ease;
}

.etn-event-item:hover {
    opacity: 0.9;
}

/* Split structure for Tablet and Desktop */
.etn-event-date-info {
    flex: 0 0 20%;
    max-width: 20%;
    background: #fcfcfc;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid #eee;
}

.etn-event-date-day {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    display: block;
}

.etn-event-date-month {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
    color: #333;
    display: block;
    margin-top: 5px;
}

.etn-event-image-wrap {
    flex: 0 0 30%;
    max-width: 30%;
    position: relative;
    overflow: hidden;
}

.etn-event-image-wrap a,
.etn-event-image-wrap .etn-event-thumb,
.etn-event-image-wrap .etn-event-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.etn-event-image-wrap img,
.etn-event-image-wrap .etn-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.etn-event-content-wrap {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.etn-event-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #000;
}

.etn-event-title a {
    color: inherit;
    text-decoration: none;
}

.etn-event-title a:hover {
    text-decoration: underline;
}

.etn-event-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.etn-event-description p {
    margin-bottom: 15px;
}

.etn-event-description p:last-child {
    margin-bottom: 0;
}

/* Hide redundant date/footer info in the content area */
.etn-event-content-wrap .etn-event-date,
.etn-event-content-wrap .etn-event-footer {
    display: none !important;
}

/* Search Form Customization */
.etn-advanced-search-form {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.etn-advanced-search-form input, 
.etn-advanced-search-form select {
    border-radius: 0 !important;
    border: 1px solid #ccc !important;
    padding: 10px 15px !important;
    font-family: inherit !important;
}

.etn-advanced-search-form button {
    border-radius: 0 !important;
    background: #000 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-weight: 600 !important;
    padding: 10px 25px !important;
    border: none !important;
    transition: background 0.3s ease !important;
}

.etn-advanced-search-form button:hover {
    background: #333 !important;
}

/* Pagination Styles */
.etn-event-archive-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.etn-event-archive-pagination li {
    margin-right: 10px;
}

.etn-event-archive-pagination a,
.etn-event-archive-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.etn-event-archive-pagination .current,
.etn-event-archive-pagination a:hover {
    background: #000;
    color: #fff;
}

/* Mobile Viewport */
@media (max-width: 767px) {
    .etn-event-item {
        flex-direction: column !important;
    }

    .etn-event-date-info {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .etn-event-date-day, .etn-event-date-month {
        font-size: 20px;
        margin-top: 0;
    }

    .etn-event-image-wrap {
        display: none;
    }

    .etn-event-content-wrap {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px;
    }

    .etn-event-title {
        font-size: 20px;
    }
}
