/* ==========================================================================
   MT Events - Styles
   ========================================================================== */

:root {
    --mt-events-primary: #2563eb;
    --mt-events-primary-hover: #1d4ed8;
    --mt-events-text: #1f2937;
    --mt-events-text-light: #6b7280;
    --mt-events-bg-light: #f9fafb;
    --mt-events-border: #e5e7eb;
    --mt-events-radius: 12px;
    --mt-events-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --mt-events-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --mt-events-transition: all 0.3s ease;
}

/* ==========================================================================
   Single Event
   ========================================================================== */

.mt-events-hero {
    position: relative;
    max-height: 480px;
    overflow: hidden;
    background: var(--mt-events-bg-light);
}

.mt-events-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mt-events-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.mt-events-hero-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: var(--mt-events-radius);
    padding: 16px 24px;
    box-shadow: var(--mt-events-shadow-lg);
}

.mt-events-date-day {
    font-size: 36px;
    font-weight: 800;
    color: var(--mt-events-text);
    line-height: 1;
}

.mt-events-date-month {
    font-size: 14px;
    font-weight: 600;
    color: var(--mt-events-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero – Contained (in container, above columns) */
.mt-events-hero--contained {
    border-radius: var(--mt-events-radius);
    margin-bottom: 32px;
}

.mt-events-hero--contained .mt-events-hero-overlay {
    border-radius: var(--mt-events-radius);
    padding-left: 40px;
}

/* Hero – Inline (inside content column) */
.mt-events-hero--inline {
    border-radius: var(--mt-events-radius);
    margin-bottom: 28px;
}

.mt-events-hero--inline .mt-events-hero-overlay {
    border-radius: var(--mt-events-radius);
    padding-left: 40px;
}

.mt-events-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mt-events-cats a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--mt-events-text);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--mt-events-transition);
}

.mt-events-cats a:hover {
    background: #111827;
}

.mt-events-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--mt-events-text);
    margin: 0 0 24px;
    line-height: 1.3;
}

.mt-events-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--mt-events-text);
}

.mt-events-content p {
    margin-bottom: 16px;
}

/* Sidebar */
.mt-events-details-card {
    background: #fff;
    border: 1px solid var(--mt-events-border);
    border-radius: var(--mt-events-radius);
    padding: 28px;
    box-shadow: var(--mt-events-shadow);
    position: sticky;
    top: 100px;
}

.mt-events-details-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--mt-events-text);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--mt-events-border);
}

.mt-events-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mt-events-border);
}

.mt-events-detail-row:last-child {
    border-bottom: none;
}

.mt-events-detail-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mt-events-bg-light);
    color: var(--mt-events-text);
    border-radius: 8px;
    font-size: 14px;
}

.mt-events-detail-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mt-events-text-light);
    margin-bottom: 2px;
    font-weight: 600;
}

.mt-events-detail-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--mt-events-text);
}

.mt-events-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--mt-events-text);
}

.mt-events-cta {
    margin-top: 24px;
}

.mt-events-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--mt-events-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--mt-events-transition);
}

.mt-events-btn:hover {
    background: var(--mt-events-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   Events Archive / Taxonomy
   ========================================================================== */

.mt-events-archive .mt-archive-header {
    text-align: center;
    margin-bottom: 48px;
}

.mt-events-archive .mt-archive-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--mt-events-text);
    margin: 0 0 12px;
}

.mt-events-archive .mt-archive-description {
    font-size: 16px;
    color: var(--mt-events-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.mt-events-list-item {
    background: #fff;
    border: 1px solid var(--mt-events-border);
    border-radius: var(--mt-events-radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--mt-events-shadow);
    transition: var(--mt-events-transition);
}

.mt-events-list-item:hover {
    box-shadow: var(--mt-events-shadow-lg);
    border-color: var(--mt-events-text);
}

.mt-events-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--mt-events-bg-light);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.mt-events-badge-day {
    font-size: 28px;
    font-weight: 800;
    color: var(--mt-events-text);
    line-height: 1;
}

.mt-events-badge-month {
    font-size: 13px;
    font-weight: 700;
    color: var(--mt-events-text);
    text-transform: uppercase;
}

.mt-events-badge-year {
    font-size: 12px;
    color: var(--mt-events-text-light);
}

.mt-events-list-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.mt-events-list-title a {
    color: var(--mt-events-text);
    text-decoration: none;
    transition: var(--mt-events-transition);
}

.mt-events-list-title a:hover {
    color: var(--mt-events-text);
    text-decoration: underline;
}

.mt-events-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mt-events-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mt-events-text-light);
}

.mt-events-list-meta i {
    color: var(--mt-events-text-light);
    font-size: 12px;
}

.mt-events-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.mt-events-list-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--mt-events-text);
}

.mt-events-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--mt-events-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--mt-events-transition);
}

.mt-events-list-btn:hover {
    background: var(--mt-events-primary-hover);
    color: #fff;
}

/* Pagination */
.mt-events-archive .mt-cpt-pagination {
    margin-top: 20px;
    text-align: center;
}

.mt-events-archive .mt-cpt-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.mt-events-archive .mt-cpt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--mt-events-border);
    border-radius: 8px;
    color: var(--mt-events-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--mt-events-transition);
}

.mt-events-archive .mt-cpt-pagination .page-numbers:hover,
.mt-events-archive .mt-cpt-pagination .page-numbers.current {
    background: var(--mt-events-text);
    border-color: var(--mt-events-text);
    color: #fff;
}

.mt-events-archive .mt-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--mt-events-text-light);
    font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .mt-events-sidebar {
        margin-top: 30px;
    }

    .mt-events-details-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .mt-events-title {
        font-size: 26px;
    }

    .mt-events-archive .mt-archive-title {
        font-size: 28px;
    }

    .mt-events-list-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .mt-events-date-badge {
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   Related Section
   ========================================================================== */

.mt-events-single .mt-related-section {
    background: var(--mt-events-bg-light);
    padding: 60px 0;
}

.mt-events-single .mt-related-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--mt-events-text);
    margin: 0 0 32px;
    text-align: center;
}

/* Related Event Card */
.mt-events-related-card {
    background: #fff;
    border: 1px solid var(--mt-events-border);
    border-radius: var(--mt-events-radius);
    overflow: hidden;
    box-shadow: var(--mt-events-shadow);
    transition: var(--mt-events-transition);
    height: 100%;
    margin-bottom: 30px;
}

.mt-events-related-card:hover {
    box-shadow: var(--mt-events-shadow-lg);
    transform: translateY(-4px);
}

.mt-events-related-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.mt-events-related-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.mt-events-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--mt-events-transition);
}

.mt-events-related-card:hover .mt-events-related-thumb img {
    transform: scale(1.05);
}

.mt-events-related-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--mt-events-text-light);
    line-height: 1.3;
    box-shadow: var(--mt-events-shadow);
}

.mt-events-related-date strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--mt-events-text);
}

.mt-events-related-body {
    padding: 20px;
}

.mt-events-related-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.mt-events-related-title a {
    color: var(--mt-events-text);
    text-decoration: none;
    transition: var(--mt-events-transition);
}

.mt-events-related-title a:hover {
    color: var(--mt-events-text);
    text-decoration: underline;
}

.mt-events-related-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mt-events-related-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mt-events-text-light);
}

.mt-events-related-meta i {
    color: var(--mt-events-text-light);
    font-size: 12px;
}

/* ==========================================================================
   Post Navigation (Prev / Next)
   ========================================================================== */

.mt-post-nav {
    padding: 0;
}

.mt-post-nav-inner {
    display: flex;
    gap: 24px;
    padding: 40px 0;
    border-top: 1px solid var(--mt-events-border, #e5e7eb);
}

a.mt-post-nav-link,
span.mt-post-nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

a.mt-post-nav-link:hover {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mt-post-nav-next {
    text-align: right;
}

.mt-post-nav-arrow {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1f2937;
    border-radius: 50%;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

a.mt-post-nav-link:hover .mt-post-nav-arrow {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mt-post-nav-prev:hover .mt-post-nav-arrow {
    transform: translateX(-4px);
}

.mt-post-nav-next:hover .mt-post-nav-arrow {
    transform: translateX(4px);
}

.mt-post-nav-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.mt-post-nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.mt-post-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.3s ease;
}

a.mt-post-nav-link:hover .mt-post-nav-title {
    color: #111827;
}

@media (max-width: 767.98px) {
    .mt-post-nav-inner {
        flex-direction: column;
        gap: 12px;
        padding: 24px 0;
    }

    a.mt-post-nav-link {
        padding: 18px 20px;
    }

    .mt-post-nav-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 14px;
    }

    .mt-post-nav-title {
        font-size: 14px;
    }
}
