/* Gh2Kenya Theme Integration */
:root {
    --color-primary-start: #72BE44;
    --color-primary-end: #8BDF58;
    --color-gradient-green: linear-gradient(93deg, var(--color-primary-start) 1.29%, var(--color-primary-end) 96.22%);
    --color-deep-blue: #0E1B2D;
    --color-text-dark: #0E1B2D;
    --color-text-light: #FFFFFF;
    --color-bg-light: #FFFFFF;
    --font-heading: 'Geologica', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --radius: 16px;

    /* New Variables */
    --swifty-primary: #0E1B2D;
    --swifty-primary-gradient: linear-gradient(135deg, #8dcf4a 0%, #3cbe87 100%);
    --swifty-accent: #72BE44;
    --swifty-bg-input: #f8fafc;
    --swifty-radius-md: 12px;
    --swifty-font: 'Geologica', sans-serif;
    --swifty-font-body: 'Montserrat', sans-serif;
}

.swifty-event-list {
    box-sizing: border-box;
    font-family: var(--font-body);
}

.swifty-event-list * {
    box-sizing: border-box;
}

/* Failsafe: Force visibility if JS crashes and leaves elementor-invisible class */
.elementor-widget-swifty_event_list.elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Layout Utilities */
/* Layout Utilities */
.swifty-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Force Single Column Stacking for Events Listing */
    gap: 30px;
    width: 100%;
}

.swifty-layout-flex {
    display: flex;
    gap: 30px;
    width: 100%;
}

.swifty-flex-row {
    flex-direction: row;
    flex-wrap: wrap;
}

.swifty-flex-column {
    flex-direction: column;
}

.swifty-flex-row .swifty-event-item {
    flex: 1 1 300px;
    max-width: 100%;
    min-width: 0;
    /* Fix flex overflow issues */
}

.swifty-flex-column .swifty-event-item {
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .swifty-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .swifty-layout-flex {
        flex-direction: column !important;
    }

    .swifty-layout-flex.swifty-flex-row {
        flex-direction: column !important;
    }

    .swifty-layout-flex .swifty-event-item,
    .swifty-flex-row .swifty-event-item {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Tablet Responsiveness */
@media (min-width: 768px) and (max-width: 1024px) {
    .swifty-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns on tablet */
    }
}

/* Ensure images cover area well on mobile */
@media (max-width: 500px) {
    .swifty-skin-gh2kenya .swifty-event-thumbnail {
        height: 180px;
    }
}

/* Animation Classes */
/* Animation Classes */
.swifty-anim-fade-up {
    animation: swiftyFadeUp 0.6s ease-out forwards;
}

.swifty-anim-zoom-in {
    animation: swiftyZoomIn 0.5s ease-out forwards;
}

/* Default state: Visible (let animation handle opacity if running, otherwise stay visible) */
.swifty-event-item {
    opacity: 1;
}

@keyframes swiftyFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swiftyZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- SKINS --- */

/* 1. GH2KENYA Premium Skin */
/* 1. GH2KENYA Premium Skin - Modern White + Glass */
.swifty-skin-gh2kenya .swifty-event-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft, premium shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    z-index: 1;
    /* For stacking context */
}

/* Glass effect overlay for hover */
.swifty-skin-gh2kenya .swifty-event-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner light border */
    z-index: 2;
}

.swifty-skin-gh2kenya .swifty-event-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    /* Deeper shadow on hover */
}

.swifty-skin-gh2kenya .swifty-event-thumbnail {
    position: relative;
    height: 240px;
    /* Taller image */
    overflow: hidden;
}

.swifty-skin-gh2kenya .swifty-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.swifty-skin-gh2kenya .swifty-event-item:hover .swifty-event-thumbnail img {
    transform: scale(1.08);
}

/* --- EVENT CARD CONTAINER --- */
.swifty-event-card {
    background: #fff;
    border-radius: 30px;
    /* Awesomely curved */
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.swifty-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -12px rgba(14, 27, 45, 0.12);
    /* Lift effect */
    border-color: rgba(0, 0, 0, 0.08);
}

/* --- IMAGE AREA --- */
.swifty-event-image {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    /* Image inherits curved top corners from card */
}

.swifty-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.swifty-event-card:hover .swifty-event-image img {
    transform: scale(1.08);
    /* Gentle zoom */
}

/* Glass Category Badge */
.swifty-event-cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.75);
    /* Frosted glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Gradient Border Shine Effect (Pseudo-element) */
.swifty-event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1.5px;
    /* Border width */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 40%, rgba(114, 190, 68, 0.5), rgba(255, 255, 255, 0) 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background-size: 200% 200%;
    animation: none;
}

.swifty-event-card:hover::after {
    opacity: 1;
    animation: swifty-border-shine 1.5s ease-in-out infinite;
}

@keyframes swifty-border-shine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* --- CONTENT AREA --- */
.swifty-event-content {
    padding: 24px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.swifty-event-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #889;
    font-weight: 500;
}

.swifty-event-meta-top i {
    color: var(--color-primary-start);
}

.swifty-event-title-link {
    text-decoration: none;
    color: inherit;
}

.swifty-event-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    margin: 0 0 12px 0;
    line-height: 1.3;
    transition: color 0.3s;
}

.swifty-event-title a {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.swifty-event-card:hover .swifty-event-title {
    color: var(--color-primary-start);
}

.swifty-event-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Optional: Limit lines if needed, but height can vary card to card */
}

/* --- FOOTER AREA --- */
.swifty-event-footer {
    padding-top: 20px;
    border-top: 1px solid #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}

/* Register Button Styles */
.swifty-btn-register {
    background: #000;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.swifty-btn-register:hover {
    background: var(--color-primary-start);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.swifty-event-date-badge {
    text-align: center;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #eff2f5;
}

.swifty-event-date-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-deep-blue);
    line-height: 1;
}

.swifty-event-date-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #889;
    /* Muted */
    font-weight: 600;
    margin-top: 2px;
}

/* Modern Button */
.swifty-btn-details {
    padding: 10px 24px;
    background: var(--color-deep-blue);
    color: #fff;
    border-radius: 50px;
    /* Fully curved */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(14, 27, 45, 0.2);
}

/* Button Shine Sweep */
.swifty-btn-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: none;
}

.swifty-btn-details:hover {
    background: var(--color-primary-start);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 190, 68, 0.3);
}

.swifty-btn-details:hover::before {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.swifty-skin-gh2kenya .swifty-event-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    position: relative;
    background: #fff;
    /* Ensure solid white bg */
}

/* Glass Badge for Date (Top Right) */
.swifty-skin-gh2kenya .swifty-event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-deep-blue);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 1. Glass Category Badge (Top Left) */
.swifty-event-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: rgba(14, 27, 45, 0.6);
    /* Dark semi-transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swifty-skin-gh2kenya .swifty-event-item:hover .swifty-event-category-badge {
    background: rgba(14, 27, 45, 0.8);
    transform: translateY(-2px);
}

/* 2. Animated Gradient Border Shine */
.swifty-skin-gh2kenya .swifty-event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary-start), var(--color-primary-end), transparent);
    background-size: 200% 100%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: none;
}

.swifty-skin-gh2kenya .swifty-event-item:hover::before {
    opacity: 1;
    animation: swiftyBorderShine 2s infinite linear;
}

@keyframes swiftyBorderShine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.swifty-skin-gh2kenya .swifty-event-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin: 4px 0 0 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
}

.swifty-skin-gh2kenya .swifty-event-title a {
    color: var(--color-deep-blue);
    text-decoration: none;
    transition: color 0.2s;
    background-image: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.swifty-skin-gh2kenya .swifty-event-title a:hover {
    background-size: 100% 2px;
    color: var(--color-deep-blue);
}

/* Excerpt Styling */
.swifty-event-excerpt {
    font-size: 0.95rem;
    color: #5d6778;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.swifty-skin-gh2kenya .swifty-event-location,
.swifty-skin-gh2kenya .swifty-event-organizer {
    font-size: 0.85rem;
    color: #8898aa;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.swifty-skin-gh2kenya .swifty-event-location::before {
    content: '\f3c5';
    /* FontAwesome map-marker-alt */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-primary-start);
    opacity: 0.8;
}

.swifty-skin-gh2kenya .swifty-event-organizer::before {
    content: '\f2c0';
    /* User icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-primary-start);
    opacity: 0.8;
}

/* 3. Button Micro-interaction */
.swifty-skin-gh2kenya .swifty-btn-details {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--color-deep-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(14, 27, 45, 0.15);
    position: relative;
    overflow: hidden;
}

.swifty-skin-gh2kenya .swifty-btn-details::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.swifty-skin-gh2kenya .swifty-btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 27, 45, 0.25);
    background: var(--color-deep-blue);
    /* Keep base color */
}

.swifty-skin-gh2kenya .swifty-btn-details:hover::after {
    left: 140%;
    transition: 0.5s ease-in-out;
}

/* 2. Glass Minimal Skin */
.swifty-skin-glass .swifty-event-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.swifty-skin-glass .swifty-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-deep-blue);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    flex-shrink: 0;
}

.swifty-skin-glass .swifty-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.swifty-skin-glass .swifty-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.swifty-skin-glass .swifty-content {
    flex-grow: 1;
}

.swifty-skin-glass .swifty-event-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.swifty-skin-glass .swifty-read-more {
    color: var(--color-primary-start);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 10px;
    display: inline-block;
}

/* 3. Highlight/Gradient Skin (replacing Neon) */
.swifty-skin-gradient_glass .swifty-event-item {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    box-shadow: 20px 20px 60px #d1d1d1, -20px -20px 60px #ffffff;
}

.swifty-skin-gradient_glass .swifty-event-thumbnail {
    height: 250px;
    position: relative;
}

.swifty-skin-gradient_glass .swifty-event-thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.swifty-skin-gradient_glass .swifty-event-content {
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    top: -20px;
    margin: 0 20px -20px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    /* Fix negative margin cutoff */
}

/* ===========================
   SIDEBAR & FILTER LAYOUT (CSS GRID REFACTOR)
   =========================== */

/* 1. Event List Widget Layout */
.swifty-events-wrapper-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    /* Force Single Column to let Sidebar sit at Top */
    gap: 40px;
    position: relative;
    width: 100%;
}

.swifty-events-main-content {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Sidebar Styling */
.swifty-events-filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    /* Space between filter and content */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
}

.swifty-sidebar-inner,
.swifty-filter-main-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

/* Desktop: Sidebar Left (Grid) */
@media (min-width: 992px) {
    .swifty-events-wrapper-with-sidebar {
        grid-template-columns: 1fr;
        /* Stay as single column on desktop for top filter */
    }

    .swifty-events-filter-sidebar {
        position: static;
        /* Remove sticky behavior for horizontal top bar */
        max-height: none;
        overflow-y: visible;
    }
}

/* Single Event Desktop */
@media (min-width: 992px) {
    .swifty-single-event-wrapper {
        grid-template-columns: 1fr 320px;
        /* Restore Sidebar for Single Event */
        align-items: start;
    }

    .swifty-single-sidebar {
        position: sticky;
        top: 30px;
        background: #fff;
        border-radius: var(--radius);
        padding: 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        /* More premium shadow for single event */
        border: 1px solid rgba(0, 0, 0, 0.04);
    }
}

/* Single Event Styling */
.swifty-single-title {
    font-size: 2.5rem;
    color: var(--color-deep-blue);
    margin-bottom: 20px;
    line-height: 1.1;
}

.swifty-single-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
    align-items: center;
}

.swifty-single-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


/* ===========================
   FILTER FORM STYLES
   =========================== */
.swifty-filter-group {
    margin-bottom: 0;
    position: relative;
    flex: 0 1 auto;
    /* Default: don't grow, don't shrink aggressively */
}

.swifty-filter-group.swifty-search-group {
    flex: 2 1 400px;
    /* Make search wider and allow it to grow more */
}

.swifty-filter-group:not(.swifty-search-group) {
    min-width: 150px;
}

.swifty-filter-label {
    display: block;
    font-family: var(--swifty-font);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #8898aa;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Modern Input/Select Styling */
/* Reset defaults */
.swifty-search-input,
.swifty-form-select,
.swifty-form-date {
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: var(--swifty-bg-input);
    border-radius: var(--swifty-radius-md);
    font-family: var(--swifty-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--swifty-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);

    /* Remove Default Arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.swifty-search-input::placeholder {
    color: #a0aec0;
    font-weight: 500;
}

/* Focus States */
.swifty-search-input:focus,
.swifty-form-select:focus,
.swifty-form-date:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 0 0 1px var(--swifty-accent);
    transform: translateY(-1px);
}

/* Search Icon Button */
.swifty-search-wrapper {
    position: relative;
}

.swifty-search-input {
    padding-right: 50px;
}

.swifty-search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--swifty-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.swifty-search-icon-btn:hover {
    background: var(--swifty-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* Custom Select Arrow */
.swifty-select-wrapper::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--swifty-primary);
    border-bottom: 2px solid var(--swifty-primary);
    position: absolute;
    right: 24px;
    top: 45%;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    opacity: 0.6;
}

div.swifty-select-wrapper {
    position: relative;
}

/* Ensure wrapper is relative */

/* Action Buttons */
.swifty-filter-actions {
    display: flex;
    flex-direction: row;
    /* Stack on right sidebar for cleaner look */
    gap: 12px;

}

.swifty-btn {
    position: relative;
    font-family: var(--swifty-font);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 24px;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
    letter-spacing: 0.5px;
    border: none;
}

/* Apply Button - Gradient */
.swifty-btn-apply {
    background: var(--swifty-primary-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(14, 27, 45, 0.25);
}

.swifty-btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
}

.swifty-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(14, 27, 45, 0.35);
}

.swifty-btn-apply:hover::before {
    opacity: 1;
}

/* Upcoming Quick Button */
.swifty-quick-actions {
    margin-top: 0;
    margin-bottom: 0;
}

.swifty-btn-upcoming {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    color: var(--swifty-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.swifty-btn-upcoming:hover {
    border-color: var(--color-primary-start);
    color: var(--color-primary-start);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.swifty-btn-upcoming.active {
    background: var(--swifty-primary-gradient);
    /* Colored Button as requested */
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 15px rgba(14, 27, 45, 0.2);
}

/* Date Range Row */
.swifty-date-range-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.swifty-date-range-row .swifty-form-date {
    width: 50%;
    margin-bottom: 0;
    /* Override any defaults */
}


/* ===========================
   Mobile Modal (Bottom Sheet)
   =========================== */

/* Desktop Trigger Hidden */
.swifty-mobile-filter-trigger-wrapper {
    display: none;
}

.swifty-modal-close {
    display: none;
}

@media (max-width: 991px) {
    .swifty-events-wrapper-with-sidebar {
        flex-direction: column;
    }

    /* Mobile Trigger - Premium Floating Bar */
    .swifty-mobile-filter-trigger-wrapper {
        display: block;
        margin-bottom: 24px;
        position: relative;
        z-index: 10;
    }

    .swifty-mobile-filter-btn {
        width: 100%;
        background: var(--swifty-primary-gradient);
        color: #fff;
        border: none;
        padding: 16px 24px;
        border-radius: 16px;
        font-family: var(--swifty-font);
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 10px 25px rgba(14, 27, 45, 0.2);
        transition: transform 0.2s;
    }

    .swifty-mobile-filter-btn:active {
        transform: scale(0.98);
    }

    .swifty-mobile-filter-btn i,
    .swifty-mobile-filter-btn svg {
        font-size: 1rem;
        width: 1rem;
        height: 1rem;
        fill: currentColor;
        /* For SVGs */
        background: rgba(255, 255, 255, 0.2);
        padding: 8px;
        box-sizing: content-box;
        /* Ensure padding doesn't shrink content if width set */
        border-radius: 8px;
    }

    /* Modal Styling for Mobile */
    .swifty-events-filter-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85vh;
        /* Bottom sheet height */
        background: #fff;
        z-index: 9999;
        border-radius: 24px 24px 0 0;
        padding: 32px 24px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(110%);
        /* Hidden by default */
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    /* Class added by JS (Backdrop OnClick or Button OnClick) */
    .swifty-events-wrapper-with-sidebar.swifty-filter-modal-active .swifty-events-filter-sidebar {
        transform: translateY(0);
    }

    /* Close Button (X) */
    .swifty-modal-close {
        display: flex;
        position: absolute;
        top: 12px;
        right: 12px;
        background: #fff;
        /* White bg to cover anything behind */
        border: 1px solid #eee;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 24px;
        color: #333;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10005;
        /* Super high to sit on top of everything */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        /* Pop out */
    }

    /* Backdrop */
    .swifty-filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        backdrop-filter: blur(2px);
    }

    .swifty-events-wrapper-with-sidebar.swifty-filter-modal-active .swifty-filter-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* --- FRAMER-LIKE ANIMATIONS --- */
.swifty-framer-animation .swifty-event-item {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swifty-framer-animation .swifty-event-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.swifty-framer-animation .swifty-btn-details {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swifty-framer-animation .swifty-event-item:hover .swifty-btn-details {
    transform: scale(1.05);
}

/* --- PAGINATION STYLES --- */
.swifty-pagination {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.swifty-pagination ul.page-numbers {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.swifty-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--swifty-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.swifty-pagination .page-numbers:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.swifty-pagination .page-numbers.current {
    background: var(--swifty-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(14, 27, 45, 0.3);
}

/* =========================================
   SINGLE EVENT PAGE - CARD LAYOUT (NEW)
   ========================================= */
.swifty-single-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    overflow: hidden;
    margin-top: 20px;
}

.swifty-single-hero {
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.swifty-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.swifty-single-card-content {
    padding: 40px;
}

.swifty-single-layout-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    /* Sidebar narrower */
    gap: 50px;
}

.swifty-single-main-info {
    min-width: 0;
}

/* Sidebar Minimal Style */
.swifty-single-sidebar-minimal {
    border-left: 1px solid #eee;
    padding-left: 40px;
    margin-left: -20px;
    /* Visual alignment fix */
}

/* Typography & Elements */
.swifty-single-title {
    font-size: 2.5rem;
    color: var(--color-deep-blue);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.swifty-single-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.swifty-meta-item {
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.swifty-meta-item i {
    color: var(--color-primary-start);
    font-size: 1.1rem;
}

.swifty-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

/* Back Button */
.swifty-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.swifty-back-btn:hover {
    color: var(--color-primary-start);
    transform: translateX(-3px);
}

/* Related Events Divider */
.swifty-related-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

/* Related Events Grid */
.swifty-related-events h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--color-deep-blue);
}

.swifty-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.swifty-related-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.swifty-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.swifty-related-thumb {
    height: 140px;
    overflow: hidden;
}

.swifty-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swifty-related-info {
    padding: 16px;
}

.swifty-related-title {
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: var(--color-deep-blue);
}

.swifty-related-date {
    font-size: 0.8rem;
    color: #889;
}

/* Mobile Responsiveness for Single Page */
@media (max-width: 768px) {
    .swifty-single-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .swifty-single-sidebar-minimal {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid #eee;
        padding-top: 30px;
    }

    .swifty-single-hero {
        height: 250px;
    }

    .swifty-single-card-content {
        padding: 24px;
        /* Reduced padding on mobile */
    }

    .swifty-single-title {
        font-size: 1.8rem;
    }
}


/* Pill Style */
.swifty-pagination-pill .page-numbers {
    border-radius: 50px;
    width: auto;
    padding: 0 20px;
}

/* Top/Bottom Specifics */
.swifty-pagination-top {
    margin-top: 0;
    margin-bottom: 30px;
}

/* Full Width Layout when Sidebar is Hidden */
.swifty-no-sidebar .swifty-events-main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.swifty-no-sidebar .swifty-events-filter-sidebar {
    display: none !important;
}

/* Ensure Grid expands in full width mode and reflows to show more cards */
.swifty-no-sidebar .swifty-layout-grid {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

/* Ensure Flex wraps correctly in full width */
.swifty-no-sidebar .swifty-layout-flex.swifty-flex-row {
    flex-wrap: wrap;
    width: 100%;
}

.swifty-no-sidebar .swifty-layout-flex.swifty-flex-row .swifty-event-item {
    flex: 1 1 280px;
    /* Allow shrinking down to 280 before wrapping */
    max-width: none;
}

/* Default Widget Title */
.swifty-widget-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    margin-bottom: 24px;
    line-height: 1.2;
}