/* ===================================
   BizMatch Connector Plugin Styles
   Matches staging.apps.my Elementor design
   All classes prefixed with .bmc-
   =================================== */

/* --- Error / Empty States --- */
.bmc-error {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.bmc-error a {
    color: #2563eb;
    text-decoration: underline;
}

.bmc-empty {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
}

/* =========================================
   STATS BAR (Home page counters)
   Staging: row layout, gap 62px, #CADFFE numbers
   ========================================= */
.bmc-stats-bar {
    display: flex;
    justify-content: flex-start;
    gap: 62px;
    padding: 0;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.bmc-stat-item {
    text-align: center;
    width: 208px;
    padding: 22px;
    border: 1px solid #ffffff;
    border-radius: 0;
}

.bmc-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    color: #CADFFE;
    line-height: 1.2;
}

.bmc-stat-label {
    display: block;
    font-family: "Figtree", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #F5F5F5;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@media (max-width: 768px) {
    .bmc-stats-bar {
        justify-content: center;
        gap: 12px;
    }
    .bmc-stat-item {
        width: 30%;
        min-width: 90px;
        padding: 12px;
    }
    .bmc-stat-value {
        font-size: 38px;
    }
    .bmc-stat-label {
        line-height: 1.3;
    }
}

/* =========================================
   UPCOMING EVENTS SECTION
   Transparent when inside Elementor container
   (parent provides teal gradient background)
   ========================================= */
.bmc-upcoming-section {
    background: transparent;
    padding: 0;
    width: 100%;
    position: relative;
}

.bmc-upcoming-inner {
    display: flex;
    flex-direction: row;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.bmc-upcoming-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3% 5% 5% 1%;
}

.bmc-upcoming-subtitle {
    font-family: "Figtree", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin-bottom: 12px;
}

.bmc-upcoming-title {
    font-size: 42px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 22px 0;
}

.bmc-upcoming-btn {
    display: inline-block;
    background: #CE3300;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 18px 24px;
    border-radius: 4px;
    transition: background 0.2s;
    align-self: flex-start;
}

.bmc-upcoming-btn:hover {
    background: #a82900;
    color: #ffffff;
}

.bmc-upcoming-right {
    flex: 0 0 100%;
    padding: 0 2% 1% 0;
}

@media (max-width: 768px) {
    .bmc-upcoming-inner {
        flex-direction: column;
    }
    .bmc-upcoming-left {
        flex: none;
        padding: 0 12px 24px;
    }
    .bmc-upcoming-right {
        flex: none;
        padding: 0 12px;
    }
    .bmc-upcoming-title {
        font-size: 32px;
    }
    .bmc-upcoming-subtitle {
        font-size: 18px;
    }
}

/* =========================================
   UPCOMING EVENT CARDS (Loop Item #561)
   Staging: row card, glass bg, date block
   ========================================= */
.bmc-loop-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bmc-loop-item .bmc-card {
    display: flex;
    flex-direction: row;
    min-height: 220px;
    gap: 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.23);
    border: 1px solid #1F2B61;
    box-shadow: 0px 8px 35px 0px rgba(0, 0, 0, 0.19);
    overflow: hidden;
    padding: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmc-loop-item .bmc-card:hover {
    transform: translateX(4px);
    box-shadow: 0px 12px 40px 0px rgba(0, 0, 0, 0.25);
}

.bmc-loop-item .bmc-card-image {
    display: flex;
    flex: 0 0 29.376%;
    border-radius: 6px;
    overflow: hidden;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bmc-loop-item .bmc-card-date {
    display: flex;
    flex-direction: column;
    flex: 0 0 15%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.63);
    border-radius: 6px;
    padding: 12px 8px;
}

.bmc-loop-item .bmc-card-date-day {
    font-size: 60px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

.bmc-loop-item .bmc-card-date-month {
    font-family: "Figtree", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin: 0;
}

.bmc-loop-item .bmc-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding: 32px 32px 32px 22px;
}

.bmc-loop-item .bmc-card-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2em;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.bmc-loop-item .bmc-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.5s;
}

.bmc-loop-item .bmc-card-title a:hover {
    color: #C5E0FF;
}

.bmc-loop-item .bmc-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    align-self: flex-end;
    font-family: "Figtree", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.8px;
    color: #D9F3F9;
    margin: 0;
    list-style: none;
    padding: 0;
}

.bmc-loop-item .bmc-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bmc-loop-item .bmc-card-meta svg {
    width: 14px;
    height: 14px;
    fill: #D9F3F9;
}

@media (max-width: 767px) {
    .bmc-loop-item .bmc-card {
        flex-wrap: wrap;
        min-height: auto;
    }
    .bmc-loop-item .bmc-card-image {
        flex: 0 0 60%;
        min-height: 180px;
    }
    .bmc-loop-item .bmc-card-date {
        flex: 0 0 36%;
    }
    .bmc-loop-item .bmc-card-info {
        padding: 16px 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bmc-loop-item .bmc-card-image {
        flex: 0 0 25%;
    }
    .bmc-loop-item .bmc-card-date {
        flex: 0 0 15%;
    }
    .bmc-loop-item .bmc-card-info {
        flex: 0 0 51.8%;
    }
}

/* =========================================
   PAST EVENTS SECTION
   Staging: gradient bg #D3390D, faded watermark
   ========================================= */
.bmc-past-section {
    padding: 72px 12px 42px;
    min-height: 66vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bmc-past-header {
    text-align: center;
    position: relative;
    margin-bottom: 32px;
    width: 100%;
}

.bmc-past-watermark {
    font-size: 120px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -3px;
    color: rgba(248, 248, 248, 0.24);
    line-height: 0.9;
    margin-bottom: -5%;
    pointer-events: none;
    user-select: none;
}

.bmc-past-title {
    font-size: 42px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 22% 16px;
    position: relative;
}

.bmc-past-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 2%;
}

@media (max-width: 768px) {
    .bmc-past-watermark {
        font-size: 68px;
        margin-bottom: -7%;
    }
    .bmc-past-title {
        font-size: 32px;
        margin: 0 0 16px;
    }
    .bmc-past-subtitle {
        font-size: 18px;
        max-width: 90%;
    }
}

/* =========================================
   PAST EVENT CARDS (Carousel)
   Staging: white cards, large images, 3 visible
   ========================================= */
.bmc-past-carousel-wrap {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 64px;
}

.bmc-past-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 12px 0 24px;
}

.bmc-past-carousel::-webkit-scrollbar {
    display: none;
}

.bmc-past-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmc-past-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.18);
}

.bmc-past-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.bmc-past-card-image {
    height: 240px;
    overflow: hidden;
}

.bmc-past-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bmc-past-card:hover .bmc-past-card-image img {
    transform: scale(1.05);
}

.bmc-past-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 24px 22px;
}

.bmc-past-card-event-date {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 6px;
}

.bmc-past-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.bmc-past-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 300;
    align-self: flex-end;
    margin-top: 16px;
}

.bmc-past-card-meta-sep {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bmc-past-card-meta-sep svg {
    color: #ccc;
}

/* Carousel Navigation */
.bmc-carousel-prev,
.bmc-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #ffffff;
    border: none;
    color: #D3390D;
    font-size: 24px;
    font-weight: 700;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.bmc-carousel-prev:hover,
.bmc-carousel-next:hover {
    background: #D3390D;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.bmc-carousel-prev { left: -8px; }
.bmc-carousel-next { right: -8px; }

/* Dot Pagination */
.bmc-past-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px 0 8px;
}

.bmc-past-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.bmc-past-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.bmc-past-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .bmc-past-card {
        flex: 0 0 85%;
    }
    .bmc-past-carousel-wrap {
        padding: 0 32px;
    }
    .bmc-carousel-prev,
    .bmc-carousel-next {
        font-size: 20px;
        width: 42px;
        height: 42px;
    }
    .bmc-carousel-prev { left: 0; }
    .bmc-carousel-next { right: 0; }
    .bmc-past-card-image {
        height: 200px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bmc-past-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (min-width: 1600px) {
    .bmc-past-card-image {
        height: 280px;
    }
}

/* =========================================
   BUTTONS (shared)
   ========================================= */
.bmc-register-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.bmc-btn-buyer { background: #2563eb; color: #fff; }
.bmc-btn-buyer:hover { background: #1d4ed8; color: #fff; }
.bmc-btn-supplier { background: #059669; color: #fff; }
.bmc-btn-supplier:hover { background: #047857; color: #fff; }
.bmc-btn-details { background: #f1f5f9; color: #334155; }
.bmc-btn-details:hover { background: #e2e8f0; color: #1e293b; }

/* =========================================
   DISCLAIMER MODAL
   ========================================= */
.bmc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bmc-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.bmc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.bmc-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.bmc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.bmc-modal-close:hover { color: #334155; }

.bmc-modal-body {
    padding: 20px 28px;
}

.bmc-modal-body p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.bmc-modal-body p:last-child { margin-bottom: 0; }

.bmc-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 28px 24px;
}

.bmc-modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bmc-modal-cancel {
    background: #f1f5f9;
    color: #475569;
}

.bmc-modal-cancel:hover { background: #e2e8f0; }

.bmc-modal-proceed {
    background: #2563eb;
    color: #fff;
}

.bmc-modal-proceed:hover { background: #1d4ed8; }

/* =========================================
   LIGHTBOX (shared)
   ========================================= */
.bmc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bmc-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.bmc-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.bmc-lightbox-close,
.bmc-lightbox-prev,
.bmc-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.bmc-lightbox-close:hover,
.bmc-lightbox-prev:hover,
.bmc-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bmc-lightbox-close { top: 1rem; right: 1rem; }
.bmc-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.bmc-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* =========================================
   TESTIMONIALS PAGE
   ========================================= */
.bmc-testimonials {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

/* Tabs */
.bmc-testimonials-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.bmc-tab {
    padding: 10px 28px;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    background: #ffffff;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bmc-tab:hover {
    background: #f3f4f6;
}

.bmc-tab.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Tab Content */
.bmc-tab-content {
    display: none;
}

.bmc-tab-content.active {
    display: block;
}

/* Video Popup */
.bmc-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bmc-video-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bmc-video-popup {
    position: relative;
    width: 90vw;
    max-width: 900px;
}

.bmc-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.bmc-video-close:hover {
    color: #ef4444;
}

.bmc-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.bmc-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Grid */
.bmc-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card */
.bmc-testimonial-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmc-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.bmc-testimonial-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
}

.bmc-testimonial-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bmc-testimonial-card:hover .bmc-testimonial-thumb img {
    transform: scale(1.05);
}

.bmc-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bmc-testimonial-card:hover .bmc-play-btn {
    background: rgba(220, 38, 38, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Info */
.bmc-testimonial-info {
    padding: 14px 4px 8px;
}

.bmc-testimonial-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1f2937;
    margin: 0 0 6px 0;
}

.bmc-testimonial-title a {
    color: #1f2937;
    text-decoration: none;
}

.bmc-testimonial-title a:hover {
    color: #2563eb;
}

.bmc-testimonial-source {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .bmc-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bmc-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   FOOTER: Force white text on Quick Links
   Fixes Elementor color variable override
   ========================================= */
.elementor-200 .elementor-element-6e5663e .elementor-icon-list-text {
    color: #FFFFFF !important;
}
.elementor-200 .elementor-element-6e5663e .elementor-icon-list-item a {
    color: #FFFFFF !important;
}
.elementor-200 .elementor-element-6e5663e .elementor-icon-list-item:hover .elementor-icon-list-text,
.elementor-200 .elementor-element-6e5663e .elementor-icon-list-item a:hover {
    color: #90CAF9 !important;
}

/* Contact section: email, phone, address values */
.elementor-location-footer .elementor-icon-box-description {
    color: #FFFFFF !important;
}
.elementor-location-footer .elementor-icon-box-description a {
    color: #FFFFFF !important;
}
.elementor-location-footer .elementor-icon-box-description a:hover {
    color: #90CAF9 !important;
}
