/* ==========================================================
   COMMITTEE PAGE STYLES
   Vision & Mission Style with Pop-Up Animation
   ========================================================== */

/* ---------- BODY ---------- */
body.committee-page {
    font-family: 'Poppins', sans-serif !important;
    background: #f0f2f8 !important;
    padding: 40px 20px !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

/* ---------- WRAPPER ---------- */
.committee-wrapper {
    max-width: 1100px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    animation: fadeInPage 0.8s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---------- BACK BUTTON ---------- */
.btn-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(99, 102, 241, 0.08) !important;
    color: #6366f1 !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
    margin-bottom: 30px !important;
    animation: popInLeft 0.7s ease-out 0.1s both;
}

.btn-back:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
    transform: translateX(-5px) scale(1.03) !important;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35) !important;
}

@keyframes popInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ---------- HEADER ---------- */
.committee-header {
    text-align: center !important;
    margin-bottom: 40px !important;
    animation: popIn 0.8s ease-out 0.2s both;
}

.committee-header h2 {
    color: #1e1b4b !important;
    font-weight: 800 !important;
    font-size: 36px !important;
    margin: 0 0 10px 0 !important;
}

.committee-header h2 i {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-right: 12px !important;
}

.committee-header p {
    color: rgba(0, 0, 0, 0.4) !important;
    font-size: 16px !important;
    margin-top: 5px !important;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---------- LOADING ---------- */
.loading-wrapper {
    text-align: center !important;
    padding: 60px 20px !important;
}

.loading-wrapper .spinner-border {
    color: #6366f1 !important;
    width: 3rem !important;
    height: 3rem !important;
}

.loading-wrapper p {
    color: rgba(0, 0, 0, 0.4) !important;
    margin-top: 15px !important;
}

/* ---------- TABLE WRAPPER ---------- */
.table-wrapper {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(99, 102, 241, 0.08) !important;
    background: rgba(99, 102, 241, 0.02) !important;
    animation: popInUp 0.8s ease-out 0.3s both;
}

@keyframes popInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- TABLE ---------- */
.committee-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    text-align: center !important;
    font-family: 'Poppins', sans-serif !important;
    background: #ffffff !important;
}

/* TABLE HEADER */
.committee-table thead th {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 18px 12px !important;
    border: none !important;
    white-space: nowrap !important;
    position: relative !important;
}

.committee-table thead th:first-child {
    border-top-left-radius: 20px !important;
}

.committee-table thead th:last-child {
    border-top-right-radius: 20px !important;
}

/* TABLE BODY */
.committee-table tbody td {
    padding: 16px 12px !important;
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.65) !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.06) !important;
    vertical-align: middle !important;
    transition: all 0.3s ease !important;
}

.committee-table tbody td strong {
    color: #1e1b4b !important;
    font-weight: 700 !important;
}

/* POP-UP ROW ANIMATION */
.committee-table tbody tr.pop-row {
    opacity: 0;
    animation: popRowIn 0.6s ease-out forwards;
}

@keyframes popRowIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    70% {
        transform: translateY(-3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ROW HOVER EFFECT */
.committee-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.06) !important;
    transform: scale(1.005) !important;
}

.committee-table tbody tr:hover td strong {
    color: #6366f1 !important;
}

/* EMPTY ROW */
.committee-table tbody td.empty-row {
    text-align: center !important;
    padding: 40px !important;
    color: rgba(0, 0, 0, 0.4) !important;
    font-style: italic !important;
    background: #fafbff !important;
}

/* ---------- ERROR ---------- */
.error-wrapper {
    text-align: center !important;
    padding: 60px 20px !important;
}

.error-wrapper i {
    font-size: 40px !important;
    color: #ef4444 !important;
}

.error-wrapper p {
    color: rgba(0, 0, 0, 0.4) !important;
    margin-top: 15px !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 992px) {
    .committee-wrapper {
        padding: 30px !important;
    }

    .committee-header h2 {
        font-size: 30px !important;
    }
}

@media (max-width: 768px) {
    body.committee-page {
        padding: 20px 10px !important;
    }

    .committee-wrapper {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .committee-header h2 {
        font-size: 24px !important;
    }

    .committee-header p {
        font-size: 14px !important;
    }

    .committee-table thead th {
        font-size: 11px !important;
        padding: 12px 8px !important;
    }

    .committee-table tbody td {
        font-size: 12px !important;
        padding: 12px 8px !important;
    }

    .btn-back {
        font-size: 12px !important;
        padding: 6px 16px !important;
    }
}

@media (max-width: 480px) {
    .committee-wrapper {
        padding: 15px !important;
    }

    .committee-header h2 {
        font-size: 20px !important;
    }

    .committee-table thead th {
        font-size: 10px !important;
        padding: 10px 4px !important;
        letter-spacing: 0.5px !important;
    }

    .committee-table tbody td {
        font-size: 10px !important;
        padding: 10px 4px !important;
    }
}