/* Events Page Styles */
.events-container {
    display: flex !important;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0px;
    width: 100%;
    box-sizing: border-box;
}

/* ===========================
   Sidebar Filters
   =========================== */
.filters-sidebar {
    width: 118px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Adjust if header height is different */
@media (min-width: 768px) {
    .filters-sidebar {
        top: var(--header-offset, 140px);
        max-height: calc(100vh - var(--header-offset, 100px) - 20px);
    }
}

/* Filter toggle button (mobile only) */
.filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e3e5eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #24262d;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    transition: background-color 0.2s;
    font-family: 'Work Sans', sans-serif;
}

.filter-toggle:hover {
    background-color: #f9f9fb;
}

.filter-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.filter-toggle.active .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #24262d;
    padding: 8px 12px;
    line-height: 24px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: #f9f9fb;
}

.filter-checkbox {
    width: 15px;
    height: 15px;
    border: 1px solid #e3e5eb;
    border-radius: 2.5px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.filter-checkbox:checked {
    background-color: #6453ff;
    border-color: #6453ff;
}

.filter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.filter-label {
    font-size: 16px;
    font-weight: 400;
    color: #24262d;
    line-height: 24px;
    cursor: pointer;
}
body #page .events-search-input {
    background: transparent;
    border: none;
    padding: 12px 0px;
}
/* ===========================
   Main Content
   =========================== */
.events-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* ===========================
   Search and Header
   =========================== */
.events-header {
    border-bottom: 1px solid #e3e5eb;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.events-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.events-search-box {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0px 20px;
    width: 400px;
    background: white;
    border: 1px solid #e3e5eb;
    border-radius: 12px;
    box-shadow: 1px 1px 20px 0px rgba(0, 0, 0, 0.05);
    position: relative;
}

.events-search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.events-search-input {
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 400;
    color: #24262d;
    background: transparent;
    flex: 1;
    font-family: 'Work Sans', sans-serif;
}

.events-search-input::placeholder {
    color: #9896a4;
}

.events-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9896a4;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.events-search-clear:hover {
    color: #24262d;
    transform: scale(1.1);
}

.events-search-clear:active {
    transform: scale(0.95);
}

.events-search-clear svg {
    width: 16px;
    height: 16px;
}

.results-count {
    font-size: 14px;
    font-weight: 400;
    color: #565468;
    line-height: 24px;
}

/* ===========================
   Events Grid
   =========================== */
.events-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100%;
}

/* ===========================
   Event Card
   =========================== */
.event-card {
    background: white;
    border: 1px solid #e3e5eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.event-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.event-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

body #page .event-image img {
    width:100%;
	height:180px;
	object-fit:cover;
}
.eventplace-holder-img {
    background: #F4F6F9;
    height: 180px;
    width: 100%;
}
.event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-header-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.event-type {
    font-size: 12px;
    font-weight: 500;
    color: #6453ff;
    text-transform: uppercase;
    padding: 4px 0;
}

.tag-dot {
    width: 4px;
    height: 4px;
    background:#CECECE;
    border-radius: 50%;
}

.event-status {
    background: #c1106f;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.event-header-tags {
    min-height: 26px;
}
.event-title {
    font-size: 20px;
    font-weight: 600;
    color: #24262d;
    line-height: 1.2;
    margin-bottom: 8px;
}

.event-description {
    font-size: 14px;
    font-weight: 400;
    color: #565468;
    line-height: 24px;
	margin-top:8px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-location,
.event-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.event-location-text {
    font-size: 14px;
    font-weight: 400;
    color: #24262d;
    line-height: 18px;
}

.event-date-text {
    font-size: 14px;
    font-weight: 400;
    color: #24262d;
    line-height: 18px;
}

.event-upcoming-badge {
    background: #C1106F;
    color: #fff;
    font-size: 12px;
	line-height:14px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.event-on-demand-label {
    display: flex;
	gap:4px;
    align-items: center;
}

.event-cta {
    font-size: 16px;
    font-weight: 600;
    color: #6453ff;
    margin-top: 24px;
    cursor: pointer;
    transition: text-decoration 0.2s;
    position: relative;
    z-index: 1;
}

.event-cta:hover {
    text-decoration: underline;
	color:#4742d4;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ===========================
   Responsive Design
   =========================== */
/* ===========================
   Tablet Breakpoint (768px - 1200px)
   =========================== */
@media (min-width: 768px) and (max-width: 1200px) {
    .events-container {
        padding: 60px 20px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .events-search-box {
        width: 350px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
      .events-container {
        padding: 60px 0px;
    }
}
/* ===========================
   Mobile Breakpoint (< 767px)
   =========================== */
@media (max-width: 767px) {
    .events-container {
        flex-direction: column;
        padding: 30px 0px;
        gap: 24px;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    /* Show filter toggle button on mobile */
    .filter-toggle {
        display: flex;
    }

    /* Collapsible filter section */
    .filter-section {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .filter-section.expanded {
        max-height: 500px;
        opacity: 1;
        margin-top: 8px;
    }

    /* Touch-friendly filter options */
    .filter-option {
        padding: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .filter-checkbox {
        width: 24px;
        height: 24px;
    }

    .filter-label {
        font-size: 15px;
    }

    .filter-title {
        font-size: 15px;
        padding: 12px;
    }

    /* Events grid - single column */
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Search box */
    .events-search-box {
        width: 100%;
    }

    .events-search-input {
        font-size: 15px;
    }

    .events-search-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .results-count {
        font-size: 13px;
        text-align: center;
    }

    /* Event cards */
    .event-card {
        border-radius: 8px;
    }

    .event-image {
        height: 160px;
    }

    .event-content {
        padding: 16px;
    }

    .event-title {
        font-size: 18px;
    }

    .event-description {
        font-size: 13px;
        line-height: 20px;
    }

    .event-type,
    .event-status {
        font-size: 11px;
    }

    .event-location-text,
    .event-date-text {
        font-size: 13px;
    }
}

/* ===========================
   Loading Animation
   =========================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e3e5eb;
    border-top-color: #6453ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #565468;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===========================
   Utility Classes
   =========================== */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}