/**
 * BZ Community Events — Exact Layout & Design Matching Styles
 */

/* Section Outer Container */
.bz-events-section {
    position: relative;
    padding: 70px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.bz-events-section * {
    box-sizing: border-box;
}

.bz-events-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.bz-events-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.bz-events-subheading {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #881337; /* Rose/Red 900 */
    margin-bottom: 8px;
}

.bz-events-heading {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    color: #020617; /* Slate 950 */
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .bz-events-heading {
        font-size: 44px;
    }
}

.bz-events-description {
    font-size: 14px;
    line-height: 1.6;
    color: #57534e; /* Stone 600 */
    font-weight: 500;
    margin: 0;
}

/* Event Card Item */
.bz-event-item {
    padding: 0 12px;
    box-sizing: border-box;
}

.bz-event-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #ffffff;
    border: 1px solid #d6d3d1; /* Stone 300 */
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}

.bz-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.14);
    border-color: #f59e0b; /* Amber 500 */
}

/* Card Image Area */
.bz-event-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #f5f5f4;
}

.bz-event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bz-event-card:hover .bz-event-img {
    transform: scale(1.08);
}

.bz-event-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f59e0b; /* Amber 500 */
    color: #020617; /* Slate 950 */
    border: 1px solid #fcd34d; /* Amber 300 */
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Card Body */
.bz-event-content {
    padding: 24px;
}

.bz-event-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e; /* Amber 800 */
    margin-bottom: 10px;
}

.bz-calendar-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
}

.bz-event-title {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: #020617; /* Slate 950 */
    margin: 0 0 10px 0;
    transition: color 0.25s ease;
}

.bz-event-card:hover .bz-event-title {
    color: #b45309; /* Amber 700 */
}

.bz-event-summary {
    font-size: 12.5px;
    line-height: 1.6;
    color: #475569; /* Slate 600 */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.bz-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f5f5f4;
    font-size: 12px;
    font-weight: 800;
    color: #92400e; /* Amber 800 */
}

.bz-arrow-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.bz-event-card:hover .bz-arrow-icon {
    transform: translateX(5px);
}

/* ========================================================
   SLIDER LAYOUT (Infinite Loop)
   ======================================================== */
.bz-events-slider-wrap {
    position: relative;
    user-select: none;
}

.bz-events-slider-viewport {
    overflow: hidden;
    border-radius: 28px;
    padding: 6px 0;
}

.bz-events-slider-track {
    display: flex;
    margin: 0 -12px;
    will-change: transform;
}

.bz-events-slider-track.bz-animating {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dots Pagination */
.bz-events-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.bz-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: none;
    background: #a8a29e; /* Stone 400 */
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.bz-dot:hover {
    background: #78716c;
}

.bz-dot.bz-dot-active {
    width: 26px;
    background: #881337; /* Rose/Red 900 */
}

/* ========================================================
   GRID LAYOUT
   ======================================================== */
.bz-events-grid {
    display: grid;
    gap: 24px;
}

.bz-events-grid .bz-event-item {
    padding: 0;
}

.bz-grid-cols-1 {
    grid-template-columns: 1fr;
}

.bz-grid-cols-2 {
    grid-template-columns: 1fr;
}

.bz-grid-cols-3 {
    grid-template-columns: 1fr;
}

.bz-grid-cols-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bz-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .bz-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .bz-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bz-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .bz-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}



/* ========================================================
   SINGLE EVENT PAGE STYLES (Exact Match)
   ======================================================== */
.bz-single-event-wrap {
    background-color: #faf9f6;
    color: #0f172a;
    min-height: 80vh;
    padding: 48px 16px 80px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.bz-single-event-wrap * {
    box-sizing: border-box;
}

.bz-single-event-container {
    max-width: 1080px;
    margin: 0 auto;
}

/* Top Bar */
.bz-single-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.bz-single-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.bz-single-back-link:hover {
    color: #b45309; /* Amber 700 */
}

.bz-single-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bz-badge-current {
    background: #fef3c7;
    color: #78350f;
    border: 1px solid #fde68a;
}

.bz-badge-past {
    background: #e2e8f0;
    color: #334155;
}

/* Header */
.bz-single-header {
    margin-bottom: 28px;
}

.bz-single-title {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    color: #020617;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .bz-single-title {
        font-size: 46px;
    }
}

.bz-single-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.bz-single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bz-meta-date {
    color: #92400e; /* Amber 800 */
}

.bz-meta-initiative {
    color: #047857; /* Emerald 700 */
    font-weight: 700;
}

.bz-single-icon {
    flex-shrink: 0;
}

/* Banner */
.bz-single-banner {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
    background: #020617;
    margin-bottom: 48px;
    max-height: 520px;
}

.bz-single-banner-img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Main Grid */
.bz-single-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 56px;
}

@media (min-width: 1024px) {
    .bz-single-main-grid {
        grid-template-columns: 8fr 4fr;
    }
}

.bz-single-story-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bz-single-section-head h2 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 26px;
    font-weight: 800;
    color: #020617;
    margin: 0;
}

.bz-single-body-text {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
}

.bz-single-body-text p {
    margin-bottom: 16px;
}

/* Highlights Box */
.bz-single-highlights-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bz-highlights-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.bz-highlights-icon {
    color: #b45309;
}

.bz-highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .bz-highlights-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.bz-highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    border-radius: 10px;
}

.bz-check-icon {
    color: #10b981;
    flex-shrink: 0;
}

/* Sidebar Dispatch Card */
.bz-single-sidebar-col {
    position: sticky;
    top: 30px;
}

.bz-sidebar-dispatch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.bz-dispatch-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b45309;
    margin-bottom: 6px;
}

.bz-dispatch-heading {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: 800;
    color: #020617;
    margin: 0 0 8px 0;
}

.bz-dispatch-text {
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 20px 0;
}

.bz-dispatch-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bz-btn-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #020617;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.bz-btn-connect:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.bz-arrow-right {
    color: #fbbf24;
}

.bz-btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    transition: background 0.2s ease;
}

.bz-btn-phone:hover {
    background: #f8fafc;
}

.bz-phone-icon {
    color: #d97706;
}

.bz-dispatch-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* ========================================================
   GALLERY & LIGHTBOX STYLES
   ======================================================== */
.bz-single-gallery-section {
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.bz-gallery-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.bz-gallery-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b45309;
    display: block;
    margin-bottom: 4px;
}

.bz-gallery-title {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 26px;
    font-weight: 800;
    color: #020617;
    margin: 0;
}

.bz-gallery-subtext {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.bz-lightbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .bz-lightbox-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bz-lightbox-thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    background: #0f172a;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    user-select: none;
}

@media (min-width: 768px) {
    .bz-lightbox-thumb {
        height: 200px;
    }
}

.bz-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    cursor: pointer !important;
}

.bz-lightbox-thumb:hover img {
    transform: scale(1.08);
}

.bz-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.25);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
    pointer-events: none !important;
}

.bz-lightbox-thumb:hover .bz-lightbox-overlay {
    opacity: 1;
}

.bz-lightbox-zoom-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transition: transform 0.25s ease;
    pointer-events: none !important;
}

.bz-lightbox-thumb:hover .bz-lightbox-zoom-icon {
    transform: scale(1);
}

/* Lightbox Modal */
.bz-lightbox-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.bz-lightbox-modal.bz-open {
    display: flex !important;
}

.bz-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(8px);
}

.bz-lightbox-btn {
    position: absolute;
    z-index: 20;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.bz-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.bz-lightbox-btn-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
}

.bz-lightbox-btn-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.bz-lightbox-btn-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.bz-lightbox-btn-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.bz-lightbox-btn-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.bz-lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bz-lightbox-image-box {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000000;
    max-height: 75vh;
}

.bz-lightbox-image-box img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.bz-lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #ffffff;
    font-size: 13px;
    padding: 0 8px;
}

.bz-lightbox-title {
    margin: 0;
    font-weight: 600;
    color: #f1f5f9;
}

.bz-lightbox-counter {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
