/* ==========================================================================
   Participants Pages (Designers, Exhibitors, Sponsors, Vendors)
   ========================================================================== */

/* The page background image lives on its own pseudo-element layer, set to
   a real reduced opacity (0.35) that only affects the image itself — not
   the content sitting on top of it. Applying `opacity` directly to
   .participants-page would fade the text/logos too, which is why this is
   a separate layer instead. Always absolutely positioned (not fixed) so
   it stays strictly confined to this page's own content height and can
   never bleed into the header or footer while scrolling. */
.participants-page {
    position: relative;
    overflow: hidden; /* extra safety net: guarantees the background layer can never visually escape this box */
}

.participants-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--participants-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* Every direct section sits above the background layer. */
.participants-page > * {
    position: relative;
    z-index: 1;
}

/* --- Hero --- */
.participants-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.participants-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.participants-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 700px;
    padding: 0 20px;
}

.participants-hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px;
}

.participants-hero-content p {
    font-size: 18px;
    opacity: 0.92;
    margin: 0;
}

/* --- Intro / benefits text --- */
.participants-intro {
    padding: 70px 20px;
    background: #fff;
}

.participants-intro-container {
    max-width: 760px;
    text-align: center;
}

.participants-intro-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.participants-intro-container p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* --- Current / Previous logo sections --- */
/* No background color here at all — the page-level dimmed background
   image (see .participants-page::before above) shows straight through.
   The individual logo cards below stay opaque white so logos remain
   clearly legible against the photo. */
.participants-logos-section {
    padding: 60px 20px;
    background: transparent;
}

.participants-logos-section-previous {
    background: transparent;
}

.participants-logos-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.participants-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.participants-logo-item {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f0f0f0;
    min-height: 110px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.participants-logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(212, 165, 116, 0.25);
    border-color: #d4a574;
}

.participants-logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

/* "Previous" logos are visually receded — slightly muted, no hover lift,
   to reinforce that these are past participants rather than current. */
.participants-logo-item-previous {
    opacity: 0.75;
    filter: grayscale(35%);
}

.participants-logo-item-previous:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .participants-hero { min-height: 360px; }
    .participants-hero-content h1 { font-size: 32px; }
    .participants-hero-content p { font-size: 16px; }
    .participants-intro { padding: 50px 20px; }
    .participants-intro-container h2 { font-size: 24px; }
    .participants-logos-section { padding: 44px 20px; }
    .participants-logos-heading { font-size: 22px; margin-bottom: 28px; }
}

@media (max-width: 480px) {
    .participants-hero { min-height: 320px; }
    .participants-hero-content h1 { font-size: 26px; }
    .participants-logos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .participants-logo-item { min-height: 90px; padding: 14px; }
    .participants-logo-item img { max-height: 60px; }
}
