/* ========================================= */
/* 1. HIDDEN SCROLLBAR (ซ่อนแถบแต่เลื่อนได้)  */
/* ========================================= */
::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
    background: transparent !important;
}

html, body {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE, Edge */
    overflow-y: auto !important; /* บังคับให้เลื่อนแนวตั้งได้ */
}

/* ========================================= */
/* 2. MEMBERS PAGE STYLES                    */
/* ========================================= */

/* Page Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 10;
}

.page-title {
    font-family: var(--font-tech);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.6),
        0 0 45px rgba(255, 255, 255, 0.4);
}

.page-subtitle {
    font-family: var(--font-tech);
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Members Section */
.members-section {
    flex: 1;
    padding: 40px 20px 80px;
    position: relative;
    z-index: 10;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    justify-content: center;
}

/* Member Card Wrapper */
.member-card-wrap {
    position: relative;
}

/* Member Card - Horizontal Layout */
.member-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    position: relative;
    transition: all 0.3s ease;
}

.member-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #fff, transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.member-card:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.member-card:hover::before {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Member Avatar */
.member-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Member Info */
.member-info {
    flex: 1;
}

.member-name {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.member-role {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Social Links */
.member-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.social-link:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(66, 103, 178, 0.8));
}

/* Responsive */
@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
        gap: 35px 50px;
    }
}

@media (max-width: 768px) {
    .back-btn {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 0.7rem;
    }
    
    .page-header {
        padding: 60px 20px 30px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 25px;
    }
    
    .member-card {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .member-avatar {
        width: 55px;
        height: 55px;
    }
    
    .member-name {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.pagination .active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.pagination .disabled {
    color: #444;
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: none;
}