/* Court Manager - Title Holders Frontend Shortcode Styles
   Minimal styles for shortcode content rendered inside Elementor containers */

/* =============================================
   [court_current_title_holders] - Card Grid
   ============================================= */

.court-th-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.court-th-card {
    flex: 0 1 220px;
    max-width: 280px;
    text-align: center;
}

.court-th-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.court-th-card h5 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 10px 0 4px 0;
    text-align: center;
}

.court-th-card h6 {
    font-size: 0.9em;
    font-weight: 400;
    color: #666;
    margin: 0;
    text-align: center;
}

.court-th-no-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    border-radius: 8px;
    color: #999;
}

.court-th-no-photo span {
    font-size: 3em;
    font-weight: 700;
}

/* =============================================
   [court_reign_person] - Monarch content
   Inside Elementor colored containers
   ============================================= */

.court-reign-inline-photo {
    width: 100%;
    border-radius: 16px;
    display: block;
    margin-bottom: 16px;
}

.court-reign-inline h5 {
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.court-reign-inline h2 {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.court-reign-inline p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* =============================================
   [court_reign_ipp] - IPP row
   ============================================= */

.court-ipp-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.court-ipp-person {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.court-ipp-person.ipp-img-right {
    flex-direction: row-reverse;
}

.court-ipp-person img {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.court-ipp-info {
    flex: 1;
}

.court-ipp-info h5 {
    font-size: 0.9em;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.court-ipp-info h2 {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.court-ipp-info p {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

.court-ipp-person.ipp-img-right .court-ipp-info {
    text-align: right;
}

/* =============================================
   [court_board_members] - Board grid
   ============================================= */

.court-board-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.court-board-card {
    flex: 0 1 calc(20% - 24px);
    max-width: calc(20% - 24px);
    text-align: center;
    padding: 12px;
}

.court-board-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    margin: 0 auto 10px auto;
}

.court-board-card h5 {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.court-board-card h6 {
    font-size: 0.85em;
    font-weight: 400;
    color: #666;
    margin: 0;
}

.court-board-no-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    margin: 0 auto 10px auto;
    color: #999;
}

.court-board-no-photo span {
    font-size: 2.5em;
    font-weight: 700;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .court-ipp-row {
        flex-direction: column;
        gap: 20px;
    }

    .court-ipp-person img {
        width: 160px;
        height: 210px;
    }
}

@media (max-width: 600px) {
    .court-th-grid {
        flex-direction: column;
        align-items: center;
    }

    .court-th-card {
        max-width: 100%;
        width: 100%;
    }

    .court-ipp-person {
        flex-direction: column !important;
        text-align: center;
    }

    .court-ipp-person.ipp-img-right .court-ipp-info {
        text-align: center;
    }

    .court-ipp-person img {
        width: 140px;
        height: 180px;
    }

    .court-board-card {
        flex: 0 1 calc(33.33% - 16px);
        max-width: calc(33.33% - 16px);
    }
}