/* Exhibitions Archive Styling - Modern & Responsive */

.post-type-archive-our-exhibitions .ucp-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    padding-left: 18px;
    /* color: var(--uffizio-color-accent); */
}

.post-type-archive-our-exhibitions header-contact #site-header:not(.sticky-header) .site-logo img {
    filter: invert(1);
}

.post-type-archive-our-exhibitions .uffizio-header .site-navigation ul.menu li a {
    color: #000;
}

.post-type-archive-our-exhibitions #menu-header-menu li.menu-item-has-children>a::after {
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
}

.post-type-archive-our-exhibitions .uffizio-header.sticky-header .site-navigation ul.menu li a {
    color: #fff;
}

.post-type-archive-our-exhibitions .uffizio-header.sticky-header #menu-header-menu li.menu-item-has-children>a::after {
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

/* SVG icon before text */
.post-type-archive-our-exhibitions .ucp-cat::before {
    content: "";
    width: 11px;
    height: 14px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14' fill='none'%3E%3Cpath d='M5.25 0A5.257 5.257 0 0 0 0 5.25c0 3.769 4.891 8.49 5.1 8.689a.217.217 0 0 0 .3 0c.209-.2 5.1-4.92 5.1-8.689A5.257 5.257 0 0 0 5.25 0Zm0 7.656a2.406 2.406 0 1 1 0-4.812 2.406 2.406 0 0 1 0 4.812Z' fill='url(%23a)'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='5.25' x2='5.25' y1='0' y2='14' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%231E90FF'/%3E%3Cstop offset='1' stop-color='%236FB8FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
}

.ucp-header {
    background-image: url("../images/banner-desk.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Reduced to join with section below */
    color: #fff;
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    height: 534px !important;

}

/* Override global category padding for this page to sit tighter to the slider */
.post-type-archive-our-exhibitions .uffizio-category-page {
    padding-top: 40px;
}

.post-type-archive-our-exhibitions .container {
    width: 100%;
}

.post-type-archive-our-exhibitions .category-title {
    color: #0e0e0e;
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 24px !important;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.post-type-archive-our-exhibitions .category-header {
    color: #484848;
    font-size: 18px;
    line-height: 1.6;
    font-family: var(--uffizio-text-secondary);
    max-width: 650px;
}

.ucp-thumb {
    height: 280px;
    border-radius: 10px 10px 0 0;
}

.ucp-thumb img {
    max-width: 852px;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* -----------------------------------------------------
   UPCOMING EVENTS SLIDER STYLING
----------------------------------------------------- */

.upcoming-events-section {
    margin-bottom: 0;
    padding: 100px 0 100px;
    background-color: #f0f3fb;
    width: 100%;
}

.upcoming-slider-container {
    margin-top: 30px;
    position: relative;
}

.upcoming-events-slider {
    overflow: visible;
}

.swiper-slide {
    height: auto;
    /* Ensure cards fill height correctly */
}

.upcoming-item {
    height: 100%;
    margin-bottom: 0 !important;
    transition: transform 0.3s ease;
}

.upcoming-item:hover {
    transform: translateY(-5px);
}

.upcoming-item .ucp-thumb {
    position: relative;
    overflow: hidden;
}

.upcoming-location-tag {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--uffizio-color-accent, #1e90ff);
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    position: relative;
    padding-left: 20px;
    line-height: 1;
}

/* Icon for location tag */
.upcoming-location-tag::before {
    content: "";
    width: 14px;
    height: 14px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14' fill='none'%3E%3Cpath d='M5.25 0A5.257 5.257 0 0 0 0 5.25c0 3.769 4.891 8.49 5.1 8.689a.217.217 0 0 0 .3 0c.209-.2 5.1-4.92 5.1-8.689A5.257 5.257 0 0 0 5.25 0Zm0 7.656a2.406 2.406 0 1 1 0-4.812 2.406 2.406 0 0 1 0 4.812Z' fill='%231E90FF'/%3E%3C/svg%3E");
}

.upcoming-tag {
    display: inline-block;
    color: var(--uffizio-color-primary, #1e90ff);
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
}

.upcoming-item .ucp-content {
    padding: 20px;
}

.upcoming-item .ucp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.upcoming-item .ucp-title {
    margin: 5px 0 !important;
    font-size: 18px;
    line-height: 135%;
    font-weight: 600;
    color: #1a1a1a;
    font-family: var(--uffizio-body-font-family);
    text-transform: capitalize;
    letter-spacing: 0px;
}

.upcoming-item .ucp-date {
    font-weight: 500;
}

/* Navigation Overrides */
.upcoming-slider-container .swiper-button-next,
.upcoming-slider-container .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    color: var(--uffizio-color-primary, #1e90ff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.upcoming-slider-container .swiper-button-next:after,
.upcoming-slider-container .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.upcoming-slider-container .swiper-button-next:hover,
.upcoming-slider-container .swiper-button-prev:hover {
    background: var(--uffizio-color-primary, #1e90ff);
    color: #fff;
}

.upcoming-slider-container .swiper-button-prev {
    left: -5px;
}

.upcoming-slider-container .swiper-button-next {
    right: -5px;
}

/* Pagination Overrides */
.upcoming-slider-container .swiper-pagination-bullet {
    width: 25px;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    opacity: 1;
    transition: all 0.3s ease;
}

.upcoming-slider-container .swiper-pagination-bullet-active {
    width: 40px;
    background: var(--uffizio-color-primary, #1e90ff);
}



/* Responsive Overrides */

@media (max-width: 1200px) {
    .post-type-archive-our-exhibitions .category-title {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .ucp-header {
        padding: 120px 0 80px;
        min-height: 400px;
    }

    .post-type-archive-our-exhibitions .category-title {
        font-size: 40px;
    }

    .post-type-archive-our-exhibitions .category-header {
        max-width: 90%;
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .ucp-header {
        padding: 100px 0 60px;
        min-height: auto;
        background-position: 70% center;
        text-align: center;
    }

    .ucp-header .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .post-type-archive-our-exhibitions .category-title {
        font-size: 36px;
        margin-bottom: 20px !important;
        text-align: center;
    }

    .post-type-archive-our-exhibitions .category-header {
        max-width: 100%;
        font-size: 16px;
        margin: 0 auto;
        text-align: center;
    }

    .uffizio-category-page .ucp-grid {
        gap: 25px;
    }

    .upcoming-slider-container {
        padding: 0;
    }

    .upcoming-slider-container .swiper-button-next,
    .upcoming-slider-container .swiper-button-prev {
        display: none;
    }

    .upcoming-events-section {
        padding: 50px 0 50px;
    }
}

@media (max-width: 480px) {
    .ucp-header {
        padding: 80px 0 50px;
    }

    .post-type-archive-our-exhibitions .category-title {
        font-size: 30px;
    }
}