/* ==================== MEMBERS AREA SECTION (White Theme) ==================== */

/* --- Core Section Settings --- */
.redev-strip-section#membersArea {
    min-height: 100vh;
    width: 100%;
    background: #ffffff;
    padding: 120px 16px 60px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* --- Content Wrapper --- */
#membersArea > .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- Heading Styling (CENTERED) --- */
#membersArea .strip-header-block {
    margin-bottom: 40px;
    padding: 0 16px;
    flex-shrink: 0;
    text-align: center;
}

#membersArea .strip-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #0c1e47;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

#membersArea .strip-main-subtitle {
    color: #64748b;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Grid Container (Full Width) --- */
#membersArea .strip-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(90px, auto);
    gap: 20px;
    padding: 0 16px;
    margin-bottom: 40px;
    width: 100%;
}

/* --- Document Strip Card --- */
#membersArea .document-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
    width: 100%;
}

#membersArea .document-strip:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(59, 130, 246, 0.15);
}

/* --- Left Content (Icon + Text) --- */
#membersArea .strip-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

#membersArea .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

#membersArea .red-icon { background: #fee2e2; color: #ef4444; }
#membersArea .blue-icon { background: #dbeafe; color: #3b82f6; }

#membersArea .text-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

#membersArea .doc-label {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

#membersArea .file-name-sub {
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Right Content (Buttons) --- */
#membersArea .strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#membersArea .btn-group-strip {
    display: flex;
    gap: 8px;
}

#membersArea .s-btn-view,
#membersArea .s-btn-dl {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    display: grid;
    place-items: center;
    transition: all .2s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

#membersArea .s-btn-view:hover {
    background: #e2e8f0;
    color: #0f172a;
}

#membersArea .s-btn-dl:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

/* Primary Button */
#membersArea .s-btn-primary {
    background: #3b82f6;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s ease;
}

#membersArea .s-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Highlight Style */
#membersArea .blue-highlight {
    background: linear-gradient(to right, #eff6ff, #ffffff);
    border: 1px solid #bfdbfe;
}

/* =========================================================
   PAGINATION (DESKTOP + MOBILE) - WITH !IMPORTANT
   ========================================================= */

#membersArea .pagination-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    margin-top: 10px !important;
}

/* Previous/Next Buttons */
#membersArea .pagination-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    min-width: 120px !important;
    white-space: nowrap !important;
}

#membersArea .pagination-btn:hover:not(:disabled) {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25) !important;
}

#membersArea .pagination-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
    color: #cbd5e1 !important;
}

/* Page Info (Middle Element) - NO button styling */
#membersArea .pagination-info {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    padding: 12px 20px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    min-width: 100px !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* =========================================================
   MOBILE OPTIMIZATIONS
   ========================================================= */

@media (max-width: 768px) {
    #membersArea .redev-strip-section {
        padding: 140px 16px 80px 16px !important;
    }

    #membersArea .strip-header-block {
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    /* Force 1 Column Grid */
    #membersArea .strip-grid-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* Stack Content Inside Card */
    #membersArea .document-strip {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 16px !important;
        width: 100% !important;
    }

    /* Left Side: Icon + Text */
    #membersArea .strip-left {
        width: 100% !important;
        margin-bottom: 15px !important;
        flex-wrap: nowrap !important;
    }

    #membersArea .text-box {
        width: 100% !important;
    }

    #membersArea .doc-label {
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    /* Right Side: Buttons */
    #membersArea .strip-right,
    #membersArea .btn-group-strip {
        width: 100% !important;
        justify-content: flex-end !important;
    }

    /* Button Sizing */
    #membersArea .s-btn-view,
    #membersArea .s-btn-dl {
        width: 42px !important;
        height: 42px !important;
    }

    /* Primary Action Button */
    #membersArea .s-btn-primary {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Mobile Pagination */
    #membersArea .pagination-controls {
        gap: 8px !important;
    }

    #membersArea .pagination-btn {
        flex: 1 !important;
        min-width: auto !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }

    #membersArea .pagination-info {
        flex: 0 0 auto !important;
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        min-width: 80px !important;
    }
}

/* Utility */
#membersArea { display: none; }
