/* ============================================
   CLUB ADVISORS PAGE - BLUE PURPLE THEME
   WITH POP-UP ANIMATIONS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f8;
    min-height: 100vh;
}

/* ===== ADVISORS SECTION ===== */
.advisors-section {
    padding: 120px 0 60px;
    min-height: 100vh;
}

/* ===== WRAPPER ===== */
.advisors-wrapper {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: fadeInPage 0.8s ease-out;
}

/* Fade-in Page Animation */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Gradient Top Border */
.advisors-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== BACK BUTTON ===== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 20px;
    animation: popInLeft 0.7s ease-out 0.1s both;
}

.btn-back:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    transform: translateX(-5px) scale(1.03);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
}

/* Pop-in from Left */
@keyframes popInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 35px;
    animation: popIn 0.8s ease-out 0.2s both;
}

.page-header h2 {
    color: #1a1a2e;
    font-weight: 800;
    font-size: 32px;
}

.page-header h2 i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 10px;
}

.page-header p {
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
}

/* Pop-in Animation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== ADVISOR GRID ===== */
.advisor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== ADVISOR CARD ===== */
.advisor-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Pop-Up Card Animation */
.advisor-card.pop-card {
    opacity: 0;
    animation: popCardIn 0.7s ease-out forwards;
}

@keyframes popCardIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.7);
    }
    70% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Overlay */
.advisor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.04));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
    z-index: 0;
}

/* Card Hover */
.advisor-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

.advisor-card:hover::before {
    opacity: 1;
}

/* ===== ADVISOR AVATAR ===== */
.advisor-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: #667eea;
    border: 3px solid rgba(102, 126, 234, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Profile Image */
.advisor-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.advisor-card:hover .advisor-profile-img {
    transform: scale(1.1);
}

.advisor-card:hover .advisor-avatar {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
    border-color: #667eea;
    animation: bounceAvatar 0.6s ease;
}

/* Avatar Bounce on Hover */
@keyframes bounceAvatar {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.15) rotate(-8deg); }
    60% { transform: scale(0.95) rotate(5deg); }
    100% { transform: scale(1.1) rotate(-5deg); }
}

/* ===== ADVISOR NAME ===== */
.advisor-card h4 {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 17px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

/* ===== ADVISOR ROLE ===== */
.advisor-role {
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.advisor-role::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 8px auto 10px;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.advisor-card:hover .advisor-role::after {
    width: 60px;
}

/* ===== ADVISOR DETAILS ===== */
.advisor-details {
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    line-height: 2;
    position: relative;
    z-index: 1;
    text-align: left;
    padding-left: 10px;
}

.advisor-details div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.advisor-details i {
    color: #667eea;
    width: 18px;
    text-align: center;
    transition: transform 0.3s ease;
}

.advisor-card:hover .advisor-details i {
    transform: scale(1.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .advisors-wrapper {
        padding: 20px;
        border-radius: 20px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .advisor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .advisor-avatar {
        width: 90px;
        height: 90px;
    }

    .advisor-card {
        padding: 20px 15px;
    }

    .advisor-card h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .advisors-wrapper {
        padding: 15px;
        border-radius: 16px;
    }

    .page-header h2 {
        font-size: 20px;
    }

    .advisor-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .advisor-avatar {
        width: 80px;
        height: 80px;
    }
}