/* ==========================================================================
   Tashkent University of Technology - Governance Bodies Refresh CSS
   ========================================================================== */

:root {
    --gov-orange: #e54519;
    --gov-navy: #0f172a;
    --gov-blue: #1e3a8a;
    --gov-slate: #465568;
    --gov-muted: #64748b;
    --gov-border: #e2e8f0;
    --gov-bg-card: #ffffff;
    --gov-radius: 12px;
}

.governance-page {
    padding: 32px 0 64px;
}

.governance-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.governance-header {
    text-align: center;
    margin-bottom: 36px;
}

.governance-header__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gov-orange);
    background: rgba(229, 69, 25, 0.08);
    border: 1px solid rgba(229, 69, 25, 0.18);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.governance-header__kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gov-orange);
}

.governance-header__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--gov-navy);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.governance-header__subtitle {
    font-size: 15px;
    color: var(--gov-muted);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tab Navigation */
.governance-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.governance-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    gap: 4px;
    border: 1px solid var(--gov-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.governance-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--gov-slate);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.governance-tab:hover {
    color: var(--gov-navy);
    background: rgba(255, 255, 255, 0.6);
}

.governance-tab.is-active {
    background: var(--gov-navy);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.governance-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 700;
}

.governance-tab:not(.is-active) .governance-tab__badge {
    background: rgba(70, 85, 104, 0.12);
    color: var(--gov-slate);
}

/* Tab Panes */
.governance-pane {
    display: none;
    animation: govFadeIn 0.3s ease;
}

.governance-pane.is-active {
    display: block;
}

@keyframes govFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.governance-section-intro {
    background: #ffffff;
    border: 1px solid var(--gov-border);
    border-radius: var(--gov-radius);
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.governance-section-intro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gov-orange), #ff7a45);
}

.governance-section-intro__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gov-navy);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.governance-section-intro__desc {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Notice / Pending Members Callout */
.governance-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 28px;
    font-size: 13.5px;
    color: var(--gov-slate);
}

.governance-notice i {
    font-size: 18px;
    color: var(--gov-orange);
    flex-shrink: 0;
}

/* Members Grid */
.governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

@media (min-width: 992px) {
    .governance-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Member Card (Unified Tash Tech Style + 3D Magnetic Tilt & Spotlight) */
.gov-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gov-border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.gov-card::before,
.gov-chairman-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(229, 69, 25, 0.12),
        rgba(245, 158, 11, 0.05) 35%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 3;
}

.gov-card:hover::before,
.gov-chairman-card:hover::before {
    opacity: 1;
}

.gov-card:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(229, 69, 25, 0.28);
    border-color: rgba(229, 69, 25, 0.35);
}

.gov-card__photo-box {
    position: relative;
    width: calc(100% - 28px);
    margin: 14px 14px 0;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    background: #eef2f6;
    overflow: hidden;
}

.gov-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.gov-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* TT Shield Badge in Top Right */
.gov-card__shield-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 38px;
    background: var(--gov-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gov-card__shield-badge svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Content Area */
.gov-card__content {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gov-card__name {
    font-size: 15.5px;
    font-weight: 750;
    color: var(--gov-navy);
    margin: 0 0 6px;
    line-height: 1.3;
}

.gov-card__role {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gov-orange);
    margin: 0 0 6px;
    line-height: 1.4;
}

.gov-card__affiliation {
    font-size: 12px;
    color: var(--gov-muted);
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Department / Governance Badge */
.gov-card__dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #465568;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    line-height: 1.35;
    margin: 0 0 14px;
    align-self: flex-start;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gov-card__dept-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gov-orange);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(229, 69, 25, 0.18);
}

/* Contact Icons Row */
.gov-card__social-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
}

.gov-card__social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gov-card__social-icon:hover {
    background: var(--gov-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Credentials Overlay on Hover */
/* Disabled opaque hover overlay in favor of 3D spotlight + Glass Dossier Modal */
.gov-card__credentials {
    display: none;
}

/* View Dossier hint on card hover */
.gov-card__social-row {
    justify-content: space-between;
}

.gov-card__social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-card__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gov-orange);
    background: rgba(229, 69, 25, 0.08);
    padding: 5px 11px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.gov-card:hover .gov-card__view-btn {
    background: var(--gov-orange);
    color: #ffffff;
    transform: translateX(2px);
}

/* ==========================================================================
   1. Featured Chairman Hero Card & Hierarchy Connector
   ========================================================================== */
.gov-chairman-wrap {
    max-width: 920px;
    margin: 0 auto 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes gov-border-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gov-chairman-card {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 28px;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    border: 2px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(120deg, #e54519, #f59e0b, #0f172a, #e54519);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 250% 250%;
    animation: gov-border-shimmer 7s ease infinite;
}

.gov-chairman-card:hover {
    box-shadow: 0 22px 48px rgba(229, 69, 25, 0.14);
}

.gov-chairman-card__photo-box {
    position: relative;
    width: 210px;
    flex: 0 0 210px;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f6;
}

.gov-chairman-card__info {
    flex: 1;
    min-width: 0;
}

.gov-chairman-card__crown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e54519, #f97316);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(229, 69, 25, 0.25);
}

.gov-chairman-card__name {
    font-size: 24px;
    font-weight: 800;
    color: var(--gov-navy);
    margin: 0 0 8px;
    line-height: 1.25;
}

.gov-chairman-card__role {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gov-orange);
    margin: 0 0 8px;
}

.gov-chairman-card__affiliation {
    font-size: 14px;
    color: var(--gov-muted);
    margin: 0 0 18px;
    line-height: 1.55;
}

.gov-hierarchy-stem {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--gov-orange), rgba(229, 69, 25, 0.15));
    position: relative;
    margin: 0 auto 24px;
}

.gov-hierarchy-stem::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gov-orange);
    box-shadow: 0 0 0 4px rgba(229, 69, 25, 0.16);
}

/* ==========================================================================
   2. Live Filter Pills + Instant Search Bar
   ========================================================================== */
.gov-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid var(--gov-border);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 28px;
}

.gov-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gov-filter-pill {
    border: 1px solid var(--gov-border);
    background: #ffffff;
    color: var(--gov-slate);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gov-filter-pill:hover {
    border-color: var(--gov-orange);
    color: var(--gov-orange);
}

.gov-filter-pill.is-active {
    background: var(--gov-navy);
    border-color: var(--gov-navy);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.gov-search-box {
    position: relative;
    flex: 1 1 240px;
    max-width: 320px;
}

.gov-search-input {
    width: 100%;
    padding: 9px 36px 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--gov-border);
    background: #ffffff;
    font-size: 13.5px;
    color: var(--gov-navy);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gov-search-input:focus {
    border-color: var(--gov-orange);
    box-shadow: 0 0 0 3px rgba(229, 69, 25, 0.12);
}

.gov-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #e2e8f0;
    color: #475569;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.gov-search-clear.is-visible {
    display: inline-flex;
}

.gov-empty-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: var(--gov-muted);
    font-size: 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

/* ==========================================================================
   3. Staggered Scroll Reveal
   ========================================================================== */
.gov-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gov-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   4. Glassmorphic Executive Dossier Modal & Toast
   ========================================================================== */
.gov-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gov-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.gov-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    display: flex;
    gap: 28px;
    padding: 28px;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gov-modal-backdrop.is-open .gov-modal {
    transform: scale(1) translateY(0);
}

.gov-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gov-border);
    background: #f8fafc;
    color: var(--gov-navy);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gov-modal__close:hover {
    background: var(--gov-orange);
    border-color: var(--gov-orange);
    color: #ffffff;
    transform: rotate(90deg);
}

.gov-modal__media {
    flex: 0 0 230px;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f6;
    position: relative;
}

.gov-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.gov-modal__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gov-modal__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gov-orange);
    background: rgba(229, 69, 25, 0.1);
    margin-bottom: 10px;
}

.gov-modal__name {
    font-size: 22px;
    font-weight: 800;
    color: var(--gov-navy);
    margin: 0 0 6px;
    line-height: 1.25;
    padding-right: 28px;
}

.gov-modal__role {
    font-size: 14px;
    font-weight: 700;
    color: var(--gov-orange);
    margin: 0 0 8px;
}

.gov-modal__aff {
    font-size: 13.5px;
    color: var(--gov-muted);
    margin: 0 0 20px;
    line-height: 1.55;
}

.gov-modal__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--gov-border);
    padding-top: 16px;
}

.gov-modal__contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--gov-border);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--gov-navy);
}

.gov-modal__contact-val {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.gov-copy-btn {
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--gov-navy);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.gov-copy-btn:hover {
    background: var(--gov-orange);
    border-color: var(--gov-orange);
    color: #ffffff;
}

.gov-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gov-navy);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.3);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.gov-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .governance-header__title {
        font-size: 24px;
    }

    .gov-chairman-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .gov-chairman-card__photo-box {
        width: 100%;
        max-width: 240px;
        flex: none;
    }

    .gov-modal {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }

    .gov-modal__media {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        flex: none;
    }
}
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.gov-card:hover .gov-card__credentials {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gov-cred-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.3;
}

.gov-cred-role {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 6px;
    line-height: 1.4;
}

.gov-cred-dept {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}

.gov-cred-dept::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

.gov-cred-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gov-cred-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.gov-cred-item a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .governance-header__title {
        font-size: 24px;
    }

    .governance-tabs {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .governance-tab {
        justify-content: center;
        width: 100%;
    }
}
