/* ==========================================================
   Responsive overrides (migrated from Customizer Additional CSS)
   ========================================================== */

/* Mobile: location slider, hero, general overflow */
@media (max-width: 767px) {
    html {
        overflow-x: hidden !important;
    }

    body.home.page-template.page-template-templates.page-template-template-home.page-template-templatestemplate-home-php.page.page-id-65 {
        overflow: hidden;
    }

    .location-slider-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 400px;
    }

    .location-slider-inner {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
    }

    .location-slider-item {
        min-width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: start;
        align-items: center;
        background-size: cover;
        background-position: center;
        height: 180px;
    }

    .location-slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 100;
    }

    .location-slider-arrow-left {
        left: 10px;
    }

    .location-slider-arrow-right {
        right: 10px;
    }

    div#hero-slider {
        padding: 20px;
        gap: 50px !important;
    }
}

/* Mobile: single blog post */
@media (max-width: 767px) {
    .single-blog-hero-content {
        flex-direction: column !important;
        height: 500px !important;
        padding: 20px;
    }

    .single-blog-left,
    .single-blog-right {
        width: 100% !important;
    }

    .single-blog-left {
        margin: 0px !important;
    }

    h1.single-blog-title {
        font-size: 20px;
    }

    .single-blog-right {
        margin-top: 10px;
    }

    p.single-blog-category {
        top: 10px;
    }
}

/* Mobile: single event */
@media (max-width: 767px) {
    .single-event-hero-content {
        flex-direction: column !important;
    }

    .single-event-left,
    .single-event-right {
        width: 100% !important;
    }

    .single-event-left {
        margin: 0px !important;
    }

    .single-event-hero-block {
        padding: 20px;
    }

    .single-event-right {
        margin-top: 15px;
        height: 400px;
    }

    h1.single-event-title {
        font-size: 12px;
    }

    p.single-event-type {
        top: 10px;
    }

    p.single-event-date {
        bottom: 20px;
    }

    body.event-template-default.single.single-event {
        overflow: hidden;
    }

    .about-single-event-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding: 20px !important;
    }

    .single-event-details-block {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .single-event-about-block {
        order: 2 !important;
        width: 100% !important;
    }

    .event-details-list li {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }

    .event-icon {
        max-width: 24px !important;
        height: auto !important;
    }

    .event-link-button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 15px !important;
        background: #000 !important;
        color: #fff !important;
        text-decoration: none !important;
        border-radius: 5px !important;
        margin-top: 20px !important;
    }

    .about-event-heading,
    .event-details-heading {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }

    .single-event-content {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    div#map {
        width: 100%;
    }

    .single-event-full-image img {
        height: 400px !important;
        object-fit: contain !important;
        width: 100%;
    }
}

/* Mobile: blog page grid & event filters */
@media (max-width: 767px) {
    .blog-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        grid-template-columns: unset !important;
        grid-auto-rows: unset !important;
    }

    .blog-item {
        width: calc(50% - 10px) !important;
        height: 250px;
        margin-bottom: 0;
    }

    .flexible-content-container {
        padding: 15px;
    }

    /* Event filter: stack vertically */
    .calendar-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100%;
        padding: 10px;
    }

    .calendar-filter-btn,
    .event-type-toggle-btn,
    .tag-toggle-btn,
    .location-toggle-btn,
    .search-button {
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .calendar-filter-btn,
    .event-type-toggle-btn,
    .tag-toggle-btn,
    .location-toggle-btn {
        padding: 12px 15px !important;
        border: 1px solid #ddd !important;
        background: white !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .search-button {
        display: flex !important;
        justify-content: center !important;
        padding: 12px !important;
    }

    .custom-select-icon {
        margin-left: auto !important;
    }
}

/* Global: footer, related events title clamp */
#site-footer {
    margin-bottom: 0px;
}

#related-container .event-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.5em;
    max-height: 3.3em;
    width: 100%;
}

/* Blog content typography */
.single-blog-content p {
    font-size: 17px;
}

.single-blog-content h3 {
    font-size: 22px;
    font-weight: 700;
}

.blog-item h3 {
    font-size: 23px;
    font-weight: 700;
}
