/* ── Germano Jury Grid ── */

/* ────────────────────────────────
   Responsive visibility:
   PHP renders up to 3 grids (desktop/tablet/mobile).
   CSS shows only the one for the current viewport.
   ──────────────────────────────── */

/* Hide all grids by default */
.gjg-grid { display: none; }

/* Desktop (>1024px): show desktop grid */
@media (min-width: 1025px) {
    .gjg-grid--desktop { display: flex; }
}

/* Tablet (768px – 1024px): show tablet grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .gjg-grid--tablet { display: flex; }
}

/* Mobile (≤767px): show mobile grid */
@media (max-width: 767px) {
    .gjg-grid--mobile { display: flex; }
}

/* ── Grid layout ── */
.gjg-grid {
    gap: 30px;
    align-items: flex-start;
}

.gjg-column {
    flex: 1;
    min-width: 0;
}

.gjg-card {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    background: #fff;
    padding: 20px 15px;
    box-sizing: border-box;
}

.gjg-card:last-child {
    margin-bottom: 0;
}

/* ── Photo ── */
.gjg-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.gjg-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #F5A623;
    overflow: hidden;
    flex-shrink: 0;
    background: #FFF5E0;
}

.gjg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Info wrapper (aligns separators across rows) ── */
.gjg-info {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* ── Name ── */
.gjg-name {
    color: #8B1A4A;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

/* ── Role ── */
.gjg-role {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin: 0 0 4px;
    line-height: 1.4;
}

/* ── President badge ── */
.gjg-president {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.4;
}

/* ── Separator ── */
.gjg-separator {
    display: block;
    width: 80%;
    height: 0;
    border: none;
    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, #F5A623, #C0392B) 1;
    margin: 10px auto;
}

/* ── Bio toggle button ── */
.elementor-widget-germano_jury_grid button.gjg-bio-toggle,
.elementor-widget-germano_jury_grid button.gjg-bio-toggle:hover,
.elementor-widget-germano_jury_grid button.gjg-bio-toggle:focus,
.elementor-widget-germano_jury_grid button.gjg-bio-toggle:active,
.elementor-widget-germano_jury_grid .gjg-bio-toggle {
    display: inline-block;
    color: #8B1A4A;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
    background-color: transparent;
    background-image: none;
    padding: 0;
    margin-top: 4px;
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
    box-shadow: none;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: opacity 0.2s;
}

.elementor-widget-germano_jury_grid .gjg-bio-toggle:hover {
    opacity: 0.7;
    color: #8B1A4A;
    background: none;
    background-color: transparent;
}

.elementor-widget-germano_jury_grid .gjg-bio-toggle:focus-visible {
    outline: 2px solid #8B1A4A;
    outline-offset: 2px;
}

.gjg-bio-toggle--disabled {
    cursor: default;
    opacity: 0.5;
    text-decoration: none;
    pointer-events: none;
}

/* ── Bio content ── */
.gjg-bio-content {
    overflow: hidden;
    text-align: left;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* JS controls height directly for smooth animation */
    height: 0;
    opacity: 0;
    transition: height 0.35s ease, opacity 0.25s ease;
}

.gjg-bio-content.gjg-bio-content--open {
    opacity: 1;
}

.gjg-bio-content-inner {
    padding-top: 12px;
}

.gjg-bio-content p {
    margin: 0 0 10px;
}

.gjg-bio-content p:last-child {
    margin-bottom: 0;
}
